specifically handle order by error cases in the QB