Fix limits handling on subqueries
Tests : Add a LIMIT inside a subquery