Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query: SELECT (Select count(id) from {my_visitors_details} where date_event >= (SELECT last_count FROM {my_visitors} ORDER BY last_date DESC LIMIT 1) ) + (SELECT last_count FROM {my_visitors} ORDER BY last_date DESC LIMIT 1);; Array ( ) in my_visitors_get_count() (line 319 of /home/fundamentosc/public_html/sites/all/modules/my_visitors/my_visitors.module).

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:335:"SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query: SELECT (Select count(id) from {my_visitors_details} where date_event >= (SELECT last_count FROM {my_visitors} ORDER BY last_date DESC LIMIT 1) ) + (SELECT last_count FROM {my_visitors} ORDER BY last_date DESC LIMIT 1);; Array ( ) ";s:9:"%function";s:23:"my_visitors_get_count()";s:5:"%file";s:79:"/home/fundamentosc/public_html/sites/all/modules/my_visitors/my_visitors.module";s:5:"%line";i:319;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://fundamentosclinicos.com/content/inmunologia [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 3.230.173.249 [:db_insert_placeholder_9] => 1618558496 ) in dblog_watchdog() (line 160 of /home/fundamentosc/public_html/modules/dblog/dblog.module).