title: Syntax error - Doctrine\ORM\Query\QueryException
body: <p>This is the query I am using:</p>
  
  <pre><code>$q = $this-&gt;getEntityManager()-&gt;createQueryBuilder("SELECT e FROM ActionModule\Action e JOIN e.type t WHERE t.id IN (:ids)");
  </code></pre>
  
  <p>I have tried every parameter assigning option:</p>
  
  <ul>
  <li>:ids</li>
  <li>?1</li>
  <li>implode(',', $ids) </li>
  <li>?ids</li>
  </ul>
  
  <p>And always get:</p>
  
  <blockquote>
    <p>Doctrine\ORM\Query\QueryException</p>
    
    <p>[Syntax Error] line 0, col -1: Error: Expected IdentificationVariable
    | ScalarExpression | AggregateExpression | FunctionDeclaration |
    PartialObjectExpression | "(" Subselect ")" | CaseExpression, got end
    of string</p>
  </blockquote>
  
  <p>Thanks a lot in advance</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've dumped <code>$q-&gt;getQuery()-&gt;getDql()</code> and got:
  <code>"SELECT" (6)</code></p>