Doctrine 1

In SQL query, field name is not replaced with real column name in right part of join condition