Doctrine 2 - ORM

Sql Server error in createQuery using ORDER BY and setMaxResults