diff --git a/include/database/PearDatabase.php b/include/database/PearDatabase.php
index 9a6cd7377f70439dfdaf36d63a497c6de45b9614..254fe9abc2974f6cef876173743c847296b63beb 100644
--- a/include/database/PearDatabase.php
+++ b/include/database/PearDatabase.php
@@ -818,7 +818,7 @@ class PearDatabase{
 
 		// Backward compatible mode for adodb library.
 		if ($this->dbType == 'mysqli') {
-			mysqli_report(MYSQLI_REPORT_ALL ^ MYSQLI_REPORT_STRICT);
+			mysqli_report(MYSQLI_REPORT_ALL ^ MYSQLI_REPORT_STRICT ^ MYSQLI_REPORT_INDEX);
 		}
 
 		$this->database = ADONewConnection($this->dbType);