Warning: Attempt to read property "iPCatID" on null in /home/gbhat/mario/public_html/product.php on line 20

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 cStatus = 'A' ORDER BY iPC' at line 2 in /home/gbhat/mario/public_html/config/api.php:18 Stack trace: #0 /home/gbhat/mario/public_html/config/api.php(18): mysqli_query() #1 /home/gbhat/mario/public_html/config/api.php(303): fireQuery() #2 /home/gbhat/mario/public_html/product.php(20): getProductsByCategory() #3 {main} thrown in /home/gbhat/mario/public_html/config/api.php on line 18