Usually when you get that error message that you listed there is an error with the Query. When mysql_query returns a boolean instead of a result set it has caught some sort of error.
Echo out the mysql_error and and mysql_errno, nonshatter's query should have worked.
You can also try to run the query in phpadmin or some other MySql interface just to make sure it is valid.