Doctrine 1

Wrong query parameter order when using limit() on PostgreSQL