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 'id_cat) order by number,datecreate desc limit 0,24' at line 1 in /www/wwwroot/maychieudongnai.com/Library/ClassPDO.php:122
Stack trace:
#0 /www/wwwroot/maychieudongnai.com/Library/ClassPDO.php(122): PDO->prepare()
#1 /www/wwwroot/maychieudongnai.com/Library/ClassPDO.php(193): Library\ClassPDO->Init()
#2 /www/wwwroot/maychieudongnai.com/Model/product.php(144): Library\ClassPDO->query()
#3 /www/wwwroot/maychieudongnai.com/Library/Controller.php(185): include('/www/wwwroot/ma...')
#4 /www/wwwroot/maychieudongnai.com/Library/autoload.php(56): require_once('/www/wwwroot/ma...')
#5 /www/wwwroot/maychieudongnai.com/index.php(12): require_once('/www/wwwroot/ma...')
#6 {main}
thrown in /www/wwwroot/maychieudongnai.com/Library/ClassPDO.php on line 122