2013 - Lost connection to MySQL server during query

select count(*) as total from products_to_categories where categories_id = '1'

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]