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 count(*) as total from sessions where sesskey = 'ft3hbs14j3v6deukgr9hm530t3'

[TEP STOP]