title: Invalid parameter number: number of bound variables does not match number of tokens in doctrine like query
body: <pre><code> `$qb = $this-&gt;_em-&gt;createQueryBuilder();
          $qb-&gt;select('u')
         -&gt;from('user\models\User','u')
          ;
   if(is_array($filters) &amp;&amp; count($filters) &gt; 0)
          {
              foreach($filters as $k =&gt; $v){
                  if($k != 'search')
                      $qb-&gt;andWhere("u.".$k."='".$v."'");
                  else
                      $qb-&gt;andWhere('u.firstname LIKE :firstname')-&gt;setParameter('firstname',"$v%");
              }
          }`
  </code></pre>
  
  <p>the above code gives me the following error.
  Invalid parameter number: number of bound variables does not match number of tokens
  can anyone please help me. </p>