SELECT *
FROM chapters
WHERE active=1
AND site_id=
AND menu_view LIKE 'main_mini%'
ORDER BY order_num, name;
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 menu_view LIKE 'main_mini%'
ORDER BY order_num, name' at line 5
File:, Class: