Error 3 en la linea: 84. SQL query error: 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 'ORDER BY category_parent.id_left' at line 6 .
Query: SELECT category_parent.section_category_id, category_parent.url_name, category_parent.category_name, category_parent.title_tag FROM section_categories AS category_node, section_categories AS category_parent WHERE category_node.id_left BETWEEN category_parent.id_left AND category_parent.id_right AND category_node.section_category_id = ORDER BY category_parent.id_left;Error 3 en la linea: 84. SQL query error: 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 t3.estatus = 1 LIMIT 1' at line 14 .
Query: SELECT t3.header_url, t4.category_name FROM section_categories_headers AS t3 INNER JOIN section_categories AS t4 ON (t4.section_category_id = t3.section_category_id) WHERE t3.section_category_id = ( SELECT IF(t2.section_category_id = 1, t1.section_category_id, t2.section_category_id) AS category_id FROM section_categories AS t1 LEFT JOIN section_categories AS t2 ON t2.section_category_id = t1.parent_id WHERE t1.section_category_id = ) AND t3.estatus = 1 LIMIT 1;Error 3 en la linea: 84. SQL query error: 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 'ORDER BY category_parent.id_left' at line 7 .
Query: SELECT category_parent.section_category_id, category_parent.url_name, category_parent.category_name, subcategory_parent.url_name AS parent_url FROM section_categories AS category_node INNER JOIN section_categories AS category_parent ON category_node.id_left BETWEEN category_parent.id_left AND category_parent.id_right LEFT JOIN section_categories AS subcategory_parent ON subcategory_parent.section_category_id = category_parent.parent_id WHERE category_node.section_category_id = ORDER BY category_parent.id_left