title: How to use sql math function in dql (symfony2)
body: <p>I'm using this:</p>
  
  <pre><code>$query = $em-&gt;createQuery('select cp from Temp\TempAppBundle\Entity\ClinicProfile cp INNER JOIN cp.users u left JOIN cp.specializations s where cp.latitude is not null and cp.city = ?1 order by (sqrt(pow((radians(cp.longitude) - radians(?2))*cos(radians(cp.latitude)+radians(?3)), 2) + pow((radians(cp.latitude) - radians(?4)), 2))*6367)');
  </code></pre>
  
  <p>But I'm getting error </p>
  
  <pre><code>[Syntax Error] line 0, col 172: Error: Expected end of string, got 'sqrt'
  </code></pre>
  
  <p>How do i use sql functions in dql?</p>