[2024-04-18 15:04:59] 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 = '1'' at line 1 in F:\xampp\htdocs\tfb_api\core\Model.php:231 Stack trace: #0 F:\xampp\htdocs\tfb_api\core\Model.php(231): PDOStatement->execute(Array) #1 F:\xampp\htdocs\tfb_api\controllers\CourseSubgroup.php(158): Model\CourseSubgroupModel->update('1', Array) #2 F:\xampp\htdocs\tfb_api\v1\index.php(867): Controller\CourseSubgroup->patch('1') #3 [internal function]: {closure}('1') #4 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(458): call_user_func_array(Object(Closure), Array) #5 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(440): Bramus\Router\Router->invoke(Object(Closure), Array) #6 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(287): Bramus\Router\Router->handle(Array, true) #7 F:\xampp\htdocs\tfb_api\v1\index.php(872): Bramus\Router\Router->run() #8 {main}, UPDATE course_subgroup SET where id = :id [2024-04-18 15:04:42] 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 = '1'' at line 1 in F:\xampp\htdocs\tfb_api\core\Model.php:231 Stack trace: #0 F:\xampp\htdocs\tfb_api\core\Model.php(231): PDOStatement->execute(Array) #1 F:\xampp\htdocs\tfb_api\controllers\CourseSubgroup.php(158): Model\CourseSubgroupModel->update('1', Array) #2 F:\xampp\htdocs\tfb_api\v1\index.php(867): Controller\CourseSubgroup->patch('1') #3 [internal function]: {closure}('1') #4 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(458): call_user_func_array(Object(Closure), Array) #5 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(440): Bramus\Router\Router->invoke(Object(Closure), Array) #6 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(287): Bramus\Router\Router->handle(Array, true) #7 F:\xampp\htdocs\tfb_api\v1\index.php(872): Bramus\Router\Router->run() #8 {main}, UPDATE course_subgroup SET where id = :id [2024-04-18 15:04:03] 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 = '1'' at line 1 in F:\xampp\htdocs\tfb_api\core\Model.php:231 Stack trace: #0 F:\xampp\htdocs\tfb_api\core\Model.php(231): PDOStatement->execute(Array) #1 F:\xampp\htdocs\tfb_api\controllers\CourseSubgroup.php(158): Model\CourseSubgroupModel->update('1', Array) #2 F:\xampp\htdocs\tfb_api\v1\index.php(867): Controller\CourseSubgroup->patch('1') #3 [internal function]: {closure}('1') #4 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(458): call_user_func_array(Object(Closure), Array) #5 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(440): Bramus\Router\Router->invoke(Object(Closure), Array) #6 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(287): Bramus\Router\Router->handle(Array, true) #7 F:\xampp\htdocs\tfb_api\v1\index.php(872): Bramus\Router\Router->run() #8 {main}, UPDATE course_subgroup SET where id = :id [2024-04-18 15:04:49] 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 = '1'' at line 1 in F:\xampp\htdocs\tfb_api\core\Model.php:231 Stack trace: #0 F:\xampp\htdocs\tfb_api\core\Model.php(231): PDOStatement->execute(Array) #1 F:\xampp\htdocs\tfb_api\controllers\CourseSubgroup.php(158): Model\CourseSubgroupModel->update('1', Array) #2 F:\xampp\htdocs\tfb_api\v1\index.php(867): Controller\CourseSubgroup->patch('1') #3 [internal function]: {closure}('1') #4 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(458): call_user_func_array(Object(Closure), Array) #5 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(440): Bramus\Router\Router->invoke(Object(Closure), Array) #6 F:\xampp\htdocs\tfb_api\vendor\bramus\router\src\Bramus\Router\Router.php(287): Bramus\Router\Router->handle(Array, true) #7 F:\xampp\htdocs\tfb_api\v1\index.php(872): Bramus\Router\Router->run() #8 {main}, UPDATE course_subgroup SET where id = :id [2024-04-18 19:04:36] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' in F:\xampp\htdocs\tfb_api\core\Model.php:161 Stack trace: #0 F:\xampp\htdocs\tfb_api\core\Model.php(161): PDOStatement->execute(Array) #1 F:\xampp\htdocs\tfb_api\models\CourseModel.php(33): Model\CourseModel->insert(Array) #2 F:\xampp\htdocs\tfb_api\controllers\Course.php(76): Model\CourseModel->insertWithSkills(Array) #3 F:\xampp\htdocs\tfb_api\v1\index.php(851): Controller\Course->insert() #4 [internal function]: {closure}() #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(869): Bramus\Router\Router->run() #9 {main}