MySQL ERROR:

Error Number: 2006

Description: MySQL server has gone away

Query: SELECT c.cat_name, c.cat_id, c.cat_image, c.cat_description, c.parent_id, p.cat_id, p.entry_id, c.group_id FROM exp_categories AS c, exp_category_posts AS p WHERE c.cat_id = p.cat_id AND p.entry_id IN ('4188','4184','4170','4167','4135','4134','4156','4131') ORDER BY c.group_id, c.parent_id, c.cat_order