Doctrine 1

Pager returns incorrect page number when constructed on query with HAVING