You have no error handling in here.
Your query has simply failed. The easiest way to determine why is to tack on an
or die(mysql_error()); to the end of the mysql_query call. It will be a structural fault on it, not a data one (data/logic errors would produce empty resultsets, not false).