2013 - Lost connection to MySQL server during query

select count(*) as total from products p, products_to_categories p2c left join categories c on p2c.categories_id = c.categories_id where p.products_id = p2c.products_id and c.categories_status = '1' and p.products_status = '1' and p2c.categories_id = '770'

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]