title: Experiencing issue with Doctrine DQL
body: <p>I am trying to get exact age of members in a database in my query, which doctrine doesn't seem to like. Here's the sql</p>
  
  <pre><code>SELECT m.id from AppBundle:Member m  WHERE  DATE_FORMAT(:now, '%Y') - DATE_FORMAT(m.dob, '%Y') - (DATE_FORMAT(:now, '00-%m-%d') &lt; DATE_FORMAT(m.dob, '00-%m-%d')) = 32  AND  m.gender = 'Male'
  </code></pre>
  
  <p>I get the error below:</p>
  
  <pre><code> [Doctrine\ORM\Query\QueryException]
   [Syntax Error] line 0, col 128: Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got '&lt;'
  </code></pre>
  
  <p>The same query below in plain sql gives me desired results</p>
  
  <pre><code>SELECT m0_.id AS id0 FROM members m0_ WHERE DATE_FORMAT(CURDATE(), '%Y') - DATE_FORMAT(m0_.dob, '%Y') - (DATE_FORMAT(CURDATE(), '00-%m-%d') &lt; DATE_FORMAT(m0_.dob, '00-%m-%d')) = 32 AND m0_.gender = 'Male'
  </code></pre>
  
  <p>Please help</p>