Using group_start with codeigniter. Need OR instead of AND
<p>I'm using codeiginter and basically I need <code>OR ()</code> instead of <code>AND ()</code> when using <code>group_start()</code>. Is this possible?</p>

<p>What I need to produce is </p>

<pre><code>WHERE (u.location LIKE '%?%' OR (u.long BETWEEN ? AND ? AND u.lat BETWEEN ? AND ?)) AND u.active=1
</code></pre>

<p>What I'm currently doing</p>

<pre><code>$this-&gt;db-&gt;group_start()
-&gt;like('u.location',$selector['text']);
if(isset($geo)){
    $this-&gt;db-&gt;group_start();
    $this-&gt;db-&gt;where('u.long &gt;',$geo-&gt;long)
    -&gt;where('u.long &lt;',$geo-&gt;longmax)
    -&gt;where('u.lat &gt;',$geo-&gt;lat)
    -&gt;where('u.lat &lt;',$geo-&gt;latmax)
    -&gt;group_end();
}
$this-&gt;db-&gt;group_end();
</code></pre>

<p>What this produces</p>

<pre><code>WHERE ( `u`.`location` LIKE '%?%' ESCAPE '!' AND ( `u`.`lat` &lt; ? AND `u`.`lat` &gt; ? AND `u`.`long` &lt; ? AND `u`.`long` &gt; ? ) ) 
</code></pre>

<p>Thanks for the help!</p>