2013 - Lost connection to MySQL server during query

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

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]