2013 - Lost connection to MySQL server during query

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

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]