Notice: Trying to access array offset on value of type bool in /htdocs/product_detail.php on line 48

Fatal error: Uncaught 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 'AND ap.preis IS NOT NULL' at line 105 in /htdocs/app/classes/Category.php:119 Stack trace: #0 /htdocs/app/classes/Category.php(119): mysqli->query() #1 /htdocs/app/classes/Category.php(454): Category->getProductData() #2 /htdocs/product_detail.php(48): Category->renderSingleProduct() #3 {main} thrown in /htdocs/app/classes/Category.php on line 119