Nevermind
That would depend on the result of the query. You are assuming you're query is free of errors, but your MySQL db disagrees and returns boolean false instead of a result set resource.
if ($result === false) { /* your error reporting stuff here */ }