Doctrine 1

Model's default sorting breaks subqueries