An error occured

Uncaught Exception: 'PDOException'

SQLSTATE[42000]: Syntax error or access violation: 1064 [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 (SQLExecute[1064] at ext\pdo_odbc\odbc_stmt.c:263)

Stack trace:

#0 C:\xampp\htdocs\SPA\NEWS\classes\Article.php(679): PDOStatement->execute()
#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 line679