Queries were doing the wrong thing with priorities.