2013 - Lost connection to MySQL server during query

select count(*) as total from categories where parent_id = '30'

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]