ORDER BY in the sub-query should also be in the main-query