2013 - Lost connection to MySQL server during query

select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='1' order by sort_order, cd.categories_name

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]