Warning: Trying to access array offset on value of type null in /var/www/html/zh-tw/product.php on line 10

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 `id`!=42' at line 1 in /var/www/html/zh-tw/product.php:11 Stack trace: #0 /var/www/html/zh-tw/product.php(11): mysqli_query(Object(mysqli), 'SELECT `id` ,`a...') #1 {main} thrown in /var/www/html/zh-tw/product.php on line 11