title: Doctrine DQL Invalid parameter number: number of bound variables does not match number of tokens
body: <p>I'm getting the error <code>Invalid parameter number: number of bound variables does not match number of tokens</code> on this query.</p>
  
  <p>I really don't see the problem, any ideas?</p>
  
  <pre><code>public function getByPartial($q, Company $company)
  {
  
      $query = $this-&gt;createQueryBuilder('u')
          -&gt;join('u.company',':company')
          -&gt;where('u.firstName LIKE :q')
          -&gt;orWhere('u.lastName LIKE :q')
          -&gt;setParameters(array('company' =&gt; $company, 'q' =&gt; '%'.$q.'%'))
          -&gt;getQuery();
      return $query-&gt;getResult();
  
  }
  </code></pre>