2013 - Lost connection to MySQL server during query

select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown, now() as time_cur from banners b inner join banners_history bh using (banners_id) where b.status = '1'AND ( b.expires_date IS NOT NULL OR b.expires_impressions > 0 ) group by b.banners_id

[TEP STOP]

2006 - MySQL server has gone away

select count(*) as total from sessions where sesskey = '8uo99eimo461etpnpe4v3pvto4'

[TEP STOP]