업소용
SELECT * FROM shop_category WHERE cateuse = '0' AND (cate_master NOT LIKE '%"chain159"%' || cate_master IS NULL) AND (cate_user NOT LIKE '%"chain159"%' || cate_user IS NULL) AND EXISTS( SELECT * FROM shop_goods as a where a.ca_sub REGEXP CONCAT('"',shop_category.catecode) AND a.isopen = 1 AND a.use_mall IN (1,2,5,8) AND a.kind_idx IN (1, 2) AND FIND_IN_SET('chain159', a.use_hide) = 0 ) AND upcate = '042' ORDER BY caterank, catecode
2006 : MySQL server has gone away
error file : /model/list.php