Doctrine 1

When putting a subquery in the where clause which includes a join and a limit the limit subquery algorithm mistakenly modifies the subquery