check that limit/offset order matches that of mySQL