2013 - Lost connection to MySQL server during query

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

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]