Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query: SELECT 1 FROM {blocked_ips} WHERE ip = :ip; Array ( [:ip] => 54.221.45.195 ) in drupal_is_denied() (line 1909 of /var/www/mediame/drupal/includes/bootstrap.inc).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:167:"SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query: SELECT 1 FROM {blocked_ips} WHERE ip = :ip; Array ( [:ip] => 54.221.45.195 ) ";s:9:"%function";s:18:"drupal_is_denied()";s:5:"%file";s:46:"/var/www/mediame/drupal/includes/bootstrap.inc";s:5:"%line";i:1909;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.mediame.com/listing_type/belowtheline_btl/kj_general_trading [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.221.45.195 [:db_insert_placeholder_9] => 1441145921 ) in dblog_watchdog() (line 160 of /var/www/mediame/drupal/modules/dblog/dblog.module).