mysql fetch error
<pre><code>    &lt;? 
    $res = $database-&gt;userLatestStatus($u);
    while($row=mysql_fetch_assoc($res)){
       $status=$row['status'];
       echo "$status";
    }
    ?&gt;
</code></pre>

<p>This is the code on my page, which is throwing up the following error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource....</p>

<p>The database function:</p>

<pre><code>   function userLatestStatus($u)
   {
       $q = "SELECT status FROM ".TBL_STATUS." WHERE userid = '$u' DESC LIMIT 1";
       return mysql_query($q, $this-&gt;connection);
   }
</code></pre>

<p>Any ideas what the problem is?</p>
