[INVALID] [DDC-2452] DQL arbitrary joins between JTI entities produces invalid SQL

[DDC-2452](http://www.doctrine-project.org/jira/browse/DDC-2452) - DQL joins between JTI entities produce invalid SQL when additional conditions are inserted via WITH clause

Still working on a fix