2013 - Lost connection to MySQL server during query

select specials_id from specials where status = '1' and now() >= expires_date and expires_date > 0

[TEP STOP]

2006 - MySQL server has gone away

select 1 from sessions where sesskey = 'gd2bagli3gcv1sghlg4a0g27l6'

[TEP STOP]