Lost connection to MySQL server during query
SELECT t1.id, t1.work_id, t3.notify_radio_email, t3.notify_radio_pm FROM cms_works_play_radio AS t1 INNER JOIN cms_works AS t2 ON t1.work_id=t2.id INNER JOIN phpbb_users AS t3 ON t2.user_id=t3.user_id WHERE t1.quant>0 AND t1.wait_quant=0 AND ( t1.date_start IS NOT NULL AND t1.date_end IS NOT NULL AND '2016-12-04 21:32:53' BETWEEN STR_TO_DATE(t1.date_start, '%Y-%m-%d %H:%i:%s') AND STR_TO_DATE(t1.date_end, '%Y-%m-%d %H:%i:%s') ) ORDER BY t1.date_add LIMIT 0,1MySQL server has gone away
SELECT t1.user_id, t2.username, t2.user_firstname, IF(t2.user_lastvisit>=1480876075, 1, 0) AS useronline, t1.date_add FROM cms_users_invite_friends AS t1 INNER JOIN phpbb_users AS t2 ON t1.user_id=t2.user_id ORDER BY t1.date_add DESC LIMIT 0, 3MySQL server has gone away
SELECT id FROM cms_interestingCould not select database