Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/ecommerce/views/shop-catalogo.php on line 68

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 c.parent_id = )' at line 27 in /var/www/ecommerce/models/products.model.php:302 Stack trace: #0 /var/www/ecommerce/models/products.model.php(302): PDOStatement->execute() #1 /var/www/ecommerce/controllers/products.controller.php(25): ModelProducts::countProducts() #2 /var/www/ecommerce/views/shop-catalogo.php(190): ControllerProducts::countProducts() #3 /var/www/ecommerce/views/template.php(286): include('...') #4 /var/www/ecommerce/controllers/template.controller.php(8): include('...') #5 /var/www/ecommerce/index.php(90): ControllerTemplate->template() #6 {main} thrown in /var/www/ecommerce/models/products.model.php on line 302