Fatal error: Uncaught mysqli_sql_exception: 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 CategoryStaus=1 order by CategorySort asc' at line 1 in /Users/thecloud/sites/wmcl/include/Connect.php:205
Stack trace:
#0 /Users/thecloud/sites/wmcl/include/Connect.php(205): mysqli->prepare('select * from h...')
#1 /Users/thecloud/sites/wmcl/hkleft.php(12): db_driver->getAll('select * from h...')
#2 /users/thecloud/sites/wmcl/hkproject.php(168): require('/Users/thecloud...')
#3 {main}
thrown in /Users/thecloud/sites/wmcl/include/Connect.php on line 205