You are trying to call mysql_fetch_array with boolean false as an argument, rather than a result set resource. I.e.
$var = false;
mysql_fetch_array($var);
If you checked the result of your query (boolean false on error, result set resource otherwise) and proceeded to display the sql error number/message (mysql_errno(), mysql_error()) when it is false, mysql_fetch_array when it's not, then you'd see something along the lines of: You have an error in your SQL syntax .... near 'key'
Since key is a reserved word.