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 from banners b, banners_history bh where b.status = '1' and b.banners_id = bh.banners_id group by b.banners_id

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]