Fixes get next priority query. There are times when the priority wasn't correctly dropped from the queue. Since it isn't dropped the system ignores it during the inner query and then returns it because of the left outer join. This is now fixed. Even in projects where the priority isn't correctly dropped it will correctly identify and fetch the next priority