2013 - Lost connection to MySQL server during query

select distinct p.products_id, pd.products_name from products p, products_description pd, products_to_categories p2c, categories c where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and '36' in (c.categories_id, c.parent_id) order by p.products_ordered desc, pd.products_name limit 30

[TEP STOP]

2006 - MySQL server has gone away

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

[TEP STOP]