2013 - Lost connection to server during query

select count(*) as total from products p, products_to_categories p2c where p.products_id = p2c.products_id and p.products_status = '1' and p2c.categories_id = '52'

[TEP STOP]

2006 - Server has gone away

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

[TEP STOP]