ORDER and LIMIT in wrong order