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 'index-2' at line 1 in F:\xampp\htdocs\khoa_phong\Connections\function.php:17 Stack trace: #0 F:\xampp\htdocs\khoa_phong\Connections\function.php(17): PDOStatement->execute() #1 F:\xampp\htdocs\khoa_phong\page\show_tt.php(288): chucnang->select('cmc_tintuc', 'id=index-2') #2 F:\xampp\htdocs\khoa_phong\index.php(184): include('F:\\xampp\\htdocs...') #3 {main} thrown in F:\xampp\htdocs\khoa_phong\Connections\function.php on line 17