title: Use of "$or" condition is not working
body: <p>I am developing a search portal, so I need to find the searched text on more than one field.</p>
  
  <p>I am trying to use the advanced query of MongoDB in PHP.</p>
  
  <p>My code is:</p>
  
  <pre><code>$mongo = new MongoDBCONN();
  $jobCollection = $mongo-&gt;select('jobs', $mongo); 
  
  $advanceQuery=array('orgId' =&gt; '21')
  $query_q=array('$or'=&gt;array(
      array("jobTitle"=&gt;new MongoRegex("/$search/i")),
      array("jobLocationCity"=&gt;new MongoRegex("/$search/i")),
      array('jobLocationCountry'=&gt;new MongoRegex("/$search/i"))
  ));
  $advanceQuery=array_merge($advanceQuery,$query_q);
  $jobCollection-&gt;find($advanceQuery);
  </code></pre>
  
  <p>It returns NULL every time, whereas MongoRegex is working fine, because when I use it to search on only one field it works.</p>
  
  <p>$search is post as input text.</p>