mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') OR parentcatid=99999999999 OR parentcatid IN()) ORDER BY sequence,id' at line 2 in /home/.sites/site68/wwwroot/.shop/global.php:430 Stack trace: #0 /home/.sites/site68/wwwroot/.shop/global.php(430): mysqli_query(Object(mysqli), 'SELECT DISTINCT...') #1 /home/.sites/site68/wwwroot/.shop/global.php(24428): mysql_query_('SELECT DISTINCT...') #2 /home/.sites/site68/wwwroot/.shop/global.php(2525): showCategories('./', '99999999999', 1, '1', '1', 'singlecol', '0', '99999999999', '0') #3 /home/.sites/site68/wwwroot/.shop/previous_orders.php(341): showhead(1, '99999999999', '99999999999', '- Your Shopping...') #4 {main}
SELECT DISTINCT id, name, parentcatid FROM category WHERE is_deleted='N' AND category_list='Y' AND (parentcatid=0 OR parentcatid=1 OR id IN() OR parentcatid=99999999999 OR parentcatid IN()) ORDER BY sequence,id
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') OR parentcatid=99999999999 OR parentcatid IN()) ORDER BY sequence,id' at line 2
Fatal error: Uncaught TypeError: mysqli_fetch_array(): Argument #1 ($result) must be of type mysqli_result, null given in /home/.sites/site68/wwwroot/.shop/global.php:462 Stack trace: #0 /home/.sites/site68/wwwroot/.shop/global.php(462): mysqli_fetch_array(NULL) #1 /home/.sites/site68/wwwroot/.shop/global.php(13469): mysql_fetch_array_(NULL) #2 /home/.sites/site68/wwwroot/.shop/global.php(24430): SelectMultiRecords(NULL) #3 /home/.sites/site68/wwwroot/.shop/global.php(2525): showCategories('./', '99999999999', 1, '1', '1', 'singlecol', '0', '99999999999', '0') #4 /home/.sites/site68/wwwroot/.shop/previous_orders.php(341): showhead(1, '99999999999', '99999999999', '- Your Shopping...') #5 {main} thrown in /home/.sites/site68/wwwroot/.shop/global.php on line 462