Merge pull request #3 from SlikNL/master

Avoud double quoting, DC-972
Fix precedence problem with pending join conditions

http://www.doctrine-project.org/jira/browse/DC-944