Warning: Trying to access array offset on null in /var/www/html/produto.php on line 20

Warning: Trying to access array offset on null in /var/www/html/produto.php on line 27

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 produtos.statusProduto="ativo" AND produtos.slugProduto != "ass-protect" GRO' at line 1 in /var/www/html/produto.php:36 Stack trace: #0 /var/www/html/produto.php(36): mysqli_query(Object(mysqli), 'SELECT * FROM p...') #1 {main} thrown in /var/www/html/produto.php on line 36