Otherwise your error message will be blank. Just spent a ... This shows the actual query sent to MySQL, and the error.
php.net