2013 - Lost connection to MySQL server during query

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

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]