Doctrine 1

Distinct query does not work