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 rgt > AND active=1 ORDER BY lft ASC' at line 1. SQL: SELECT title_en as title, code FROM menus WHERE lft < AND rgt > AND active=1 ORDER BY lft ASCarray(4) { [0]=> array(6) { ["file"]=> string(42) "/home/dunlopty/public_html/class/XL_DB.php" ["line"]=> int(521) ["function"]=> string(5) "query" ["class"]=> string(5) "XL_DB" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(95) "SELECT title_en as title, code FROM menus WHERE lft < AND rgt > AND active=1 ORDER BY lft ASC" } } [1]=> array(6) { ["file"]=> string(52) "/home/dunlopty/public_html/include/system/header.php" ["line"]=> int(64) ["function"]=> string(15) "get_data_by_sql" ["class"]=> string(5) "XL_DB" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(95) "SELECT title_en as title, code FROM menus WHERE lft < AND rgt > AND active=1 ORDER BY lft ASC" } } [2]=> array(4) { ["file"]=> string(37) "/home/dunlopty/public_html/system.php" ["line"]=> int(220) ["args"]=> array(1) { [0]=> string(52) "/home/dunlopty/public_html/include/system/header.php" } ["function"]=> string(12) "require_once" } [3]=> array(4) { ["file"]=> string(37) "/home/dunlopty/public_html/router.php" ["line"]=> int(20) ["args"]=> array(1) { [0]=> string(37) "/home/dunlopty/public_html/system.php" } ["function"]=> string(7) "include" } }