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 MySQL server version for the right syntax to use near 'and c_type='CHK001' order by idx desc limit 0,1' at line 1 in /host/home3/ks003/html/sub_confer/confer.head.view.php:62 Stack trace: #0 /host/home3/ks003/html/sub_confer/confer.head.view.php(62): PDO->query('select * from c...') #1 /host/home3/ks003/html/sub_confer/confer_insert.php(28): include('/host/home3/ks0...') #2 {main} thrown in /host/home3/ks003/html/sub_confer/confer.head.view.php on line 62