Doctrine count query HAVING field fix*