title: Doctrine createQuery() / iterate() not able to handle IF stmt in SQL?
body: <pre><code>        $qb = $this-&gt;em-&gt;createQuery("
              SELECT 
                  label.value                    AS label,
                  'link'                         AS productLink,
                  descr.value                    AS description,
                  IF (a.is_new = 1, 'new', NULL) AS 'condition',
              ....
          ");
          $results = $qb-&gt;iterate();
  </code></pre>
  
  <p>gives the error: </p>
  
  <pre><code>exception 'Doctrine\ORM\Query\QueryException' with message
  [Syntax Error] line 0, col 514: Error:
  Expected known function, got IF
  in /var/www/xxx/library/Doctrine/ORM/Query/QueryException.php:42
  </code></pre>
  
  <p>When I put the SQL into phpMyAdmin it works,.. is this a bug in Doctrine2 ?</p>
  
  <p>Stacktrace:</p>
  
  <p>Stack trace:</p>
  
  <pre><code>#0 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(380): Doctrine\ORM\Query\QueryException::syntaxError('line 0, col 514...')
  #1 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(3001): Doctrine\ORM\Query\Parser-&gt;syntaxError('known function', Array)
  #2 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(2975): Doctrine\ORM\Query\Parser-&gt;CustomFunctionDeclaration()
  #3 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(1907): Doctrine\ORM\Query\Parser-&gt;FunctionDeclaration()
  #4 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(1048): Doctrine\ORM\Query\Parser-&gt;SelectExpression()
  #5 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(758): Doctrine\ORM\Query\Parser-&gt;SelectClause()
  #6 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(727): Doctrine\ORM\Query\Parser-&gt;SelectStatement()
  #7 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(213): Doctrine\ORM\Query\Parser-&gt;QueryLanguage()
  #8 /var/www/xxx/library/Doctrine/ORM/Query/Parser.php(288): Doctrine\ORM\Query\Parser-&gt;getAST()
  #9 /var/www/xxx/library/Doctrine/ORM/Query.php(230): Doctrine\ORM\Query\Parser-&gt;parse()
  #10 /var/www/xxx/library/Doctrine/ORM/Query.php(241): Doctrine\ORM\Query-&gt;_parse()
  #11 /var/www/xxx/library/Doctrine/ORM/AbstractQuery.php(686): Doctrine\ORM\Query-&gt;_doExecute()
  #12 /var/www/xxx/library/Doctrine/ORM/Query.php(525): Doctrine\ORM\AbstractQuery-&gt;iterate(Array, 1)
  </code></pre>