#1153 - Prevent max queries from using order by and pagination.