what's wrong with this function?
<pre><code>    function get_ibo_id() {
    if($registerquery = $this-&gt;conn-&gt;query("SELECT ibo_id FROM fasttrack WHERE count &lt;    
                   8 &amp;&amp; flag = 1 ")){
    $this-&gt;increase_count();
    while ($row = $registerquery-&gt;fetch_assoc()) { 
           return $row[ibo_id];
        }
    }
    else return "No id";
}
</code></pre>

<p>it always enters the if block even if the condition is not satisfied... <em>going crazy</em></p>
