Warning: Trying to access array offset on value of type bool in /home/werewolfterritor/public_html/views/collections.php on line 37

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 p.status = 'active' AND pi.id = (SELECT pi_inner.id FROM produ' at line 5 in /home/werewolfterritor/public_html/includes/functions.php:499 Stack trace: #0 /home/werewolfterritor/public_html/includes/functions.php(499): mysqli->query('SELECT p.id AS ...') #1 /home/werewolfterritor/public_html/views/collections.php(37): get_total_products(NULL) #2 /home/werewolfterritor/public_html/index.php(30): include('/home/werewolft...') #3 {main} thrown in /home/werewolfterritor/public_html/includes/functions.php on line 499