Fixed an error reporting bug: 4900
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 9508ded..6b60d67 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -314,7 +314,7 @@
 				$this->trans_complete();

 

 				// Log and display errors

-				log_message('error', 'Query error: '.$this->_error_message());

+				log_message('error', 'Query error: '.$error_msg);

 				return $this->display_error(

 										array(

 												'Error Number: '.$error_no,