title: Is there any error logging when mysql query fails?
body: <p>I'm curious if there is any error logging by the MySQL database when I execute a query. I know that I call <a href="http://php.net/manual/en/function.mysql-error.php" rel="nofollow">mysql_error</a> to retrieve an error but is there some other logging on database side? </p>