Are there any reports/logs saying all PHP and MySQL errors that occured on server? With date, time, some user info (browser, IP), and count of that error happened if possible.
In addition every time my mysql_query fails die message is pulled from included file:
$error_message[0] = 'Error no. 0!';
$error_message[1] = 'Error no. 1!';
$error_message[2] = 'Error no. 2!';
Is there a way to monitor which message and when was displayed?
mysql_query() || die()should only be for initial development. Once you've got it working, you should instead raise an typed exception, and try to plan for, and catch, pretty much everything.