[2025-02-10 12:02:51] 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 'where id = '4'' at line 1 in F:\xampp\htdocs\tfb\api\core\Model.php:249 Stack trace: #0 F:\xampp\htdocs\tfb\api\core\Model.php(249): PDOStatement->execute(Array) #1 F:\xampp\htdocs\tfb\api\models\MaterialModel.php(232): Model\MaterialModel->update('4', Array) #2 F:\xampp\htdocs\tfb\api\controllers\MaterialController.php(149): Model\MaterialModel->updateMaterial('4', Array) #3 F:\xampp\htdocs\tfb\api\v1\index.php(314): Controller\MaterialController->patch('4') #4 [internal function]: {closure}('4') #5 F:\xampp\htdocs\tfb\api\vendor\bramus\router\src\Bramus\Router\Router.php(458): call_user_func_array(Object(Closure), Array) #6 F:\xampp\htdocs\tfb\api\vendor\bramus\router\src\Bramus\Router\Router.php(440): Bramus\Router\Router->invoke(Object(Closure), Array) #7 F:\xampp\htdocs\tfb\api\vendor\bramus\router\src\Bramus\Router\Router.php(287): Bramus\Router\Router->handle(Array, true) #8 F:\xampp\htdocs\tfb\api\v1\index.php(1916): Bramus\Router\Router->run() #9 {main}, UPDATE material SET where id = :id