Doctrine 1

Doctrine outputs invalid SQL when using Limit and Order By conditions in MSSQL