Doctrine 2 - ORM

Error when referencing aliased sub-select in where clause