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 ' COUNT(pc.`pid`) as products
FROM `categories` ...' at line 1 in /home/biliana/domains/secretgardenlabel.com/public_html/models/baseModel.php:69
Stack trace:
#0 /home/biliana/domains/secretgardenlabel.com/public_html/models/baseModel.php(69): mysqli->query('SELECT c.*, cc....')
#1 /home/biliana/domains/secretgardenlabel.com/public_html/models/baseModel.php(25): baseModel->query('SELECT c.*, cc....')
#2 /home/biliana/domains/secretgardenlabel.com/public_html/models/baseModel.php(175): baseModel->fetchAssoc('SELECT c.*, cc....')
#3 /home/biliana/domains/secretgardenlabel.com/public_html/controllers/mainClass.php(60): baseModel->getCategories()
#4 /home/biliana/domains/secretgardenlabel.com/public_html/controllers/indexController.php(8): main->__construct()
#5 /home/biliana/domains/secretgardenlabel.com/public_html/include/router.php(74): index->__construct()
#6 /home/biliana/domains/secretgardenlabel.com/public_html/index.php(32): include('/home/biliana/d...')
#7 {main}
thrown in /home/biliana/domains/secretgardenlabel.com/public_html/models/baseModel.php on line 69