Query Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND c1.`type` = 1 AND c2.`status` = 1 ORDER BY `cat_ppt_index` DESC LIMI' at line 5 Query: SELECT c2.* FROM `shop_category` c1 LEFT JOIN `shop_category` c2 ON c2.`parent_id` = c1.`parent_id` WHERE c1.`parent_id` AND c1.`id` = AND c1.`type` = 1 AND c2.`status` = 1 ORDER BY `cat_ppt_index` DESC LIMIT 8
Ошибка 1064. Запрошенный ресурс недоступен.