In codeIgniter I see that if query has error codeignter only show database error. but codeigniter doesn't say which file's line error. here a example
A Database Error Occurred
Error Number: 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
//some thing goes here
Filename: C:\xampp\htdocs\bata_shop\system\database\DB_driver.php
Line Number: 330
Sometimes it difficult to find which query is wrong. How do I get specific database error location in codeigniter?