title: Order By DAY() Doctrine Symfony2
body: <p>I,m using <a href="https://github.com/beberlei/DoctrineExtensions" rel="nofollow">Beberlei DoctrinExtensions Bundle</a> to do queries with DAY(), MONTH() and YEAR() on Symfony2.</p>
  
  <p>Everything works on selects. But, when I try to make some OrderBy, I got a Syntax Error.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>SELECT a FROM AppUserBundle:User a WHERE MONTH(a.dataNascimento) &gt;= MONTH(CURRENT_DATE())
      AND DAY(a.dataNascimento) &gt;= DAY(CURRENT_DATE()) 
      ORDER BY DAY(a.dataNascimento)
  </code></pre>
  
  <p>And the error:</p>
  
  <pre><code>[Syntax Error] line 0, col 151: Error: Expected end of string, got '('
  </code></pre>
  
  <p>Without ORDER BY clause the query works.</p>
  
  <p>Someone can help me?</p>