Fixed a number of bug reports related to table/db names not being escaped or prefixed correctly.
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php
index e035e0c..62a77b7 100644
--- a/system/database/drivers/mysql/mysql_utility.php
+++ b/system/database/drivers/mysql/mysql_utility.php
@@ -48,7 +48,7 @@
 	 */

 	function _optimize_table($table)

 	{

-		return "OPTIMIZE TABLE ".$this->db->_escape_table($table);

+		return "OPTIMIZE TABLE ".$this->db->_escape_identifiers($table);

 	}

 

 	// --------------------------------------------------------------------

@@ -64,7 +64,7 @@
 	 */

 	function _repair_table($table)

 	{

-		return "REPAIR TABLE ".$this->db->_escape_table($table);

+		return "REPAIR TABLE ".$this->db->_escape_identifiers($table);

 	}

 

 	// --------------------------------------------------------------------