Aside from writing the wrong query and not having permissions to access a table, when mysql_query returns false? Are there any other cases?
Unfortunately, the reference guide is not very specific when it comes to what are possible ways to trigger errors. Besides syntactically invalid statements and not having permissions, exceeding the limit for creating new statements is a possible error that might pop up if you are experiencing high load.