Doctrine 1

Pager breaks when HAVING clause references existing table column