Uncaught Exception: 'PDOException'
SQLSTATE[42000]: Syntax error or access violation: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.39]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 category.id IN ('1440','1436','1214','1437','1211','1211','1211','1214','121' at line 8 (SQLPrepare[0] at ext\pdo_odbc\odbc_driver.c:200)
Stack trace:
#0 C:\xampp\htdocs\SPA\NEWS\classes\Article.php(563): PDO->prepare('SELECT article....') #1 C:\xampp\htdocs\SPA\learn_more.php(77): Article::getWithCategories(Object(PDO), false, false, ' AND article.id...') #2 {main}
In File'C:\xampp\htdocs\SPA\NEWS\classes\Article.php'on line563