2013 - Lost connection to server during query

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

[TEP STOP]

2006 - Server has gone away

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

[TEP STOP]