Glad you figured it out. For future reference, you may want to do something like:
Code:
if (($result = @mysql_query($sql)) === false)
{
   // Error message goes here using mysql_errno() and mysql_error()
}
So you can catch any errors before trying to fetch rows. Note: I'm not sure if that exact code will work, just pulled it off the top...I generally use my own custom SQL layer instead.