Having, Order by and Limit Clause