SQL ERROR FOUND in SELECT r.id AS rid, r.link_attributes,
p.record, p.title
FROM records r,
records_pages p WHERE r.id = p.parent
AND (r.parent = '1077' OR r.id IN (SELECT record_id FROM catalog_categories WHERE category_id = '1077'))
AND r.type = 2
AND r.cms_hidden = '0'
AND r.cms_readable = '1'
AND p.visible = '1' AND r.default_lang = p.lang ORDER BY r.ordering ASC, p.title ASC [nativecode=2006 ** MySQL server has gone away]