Abstracted FROM table listing in Active Record for databases that do not support parenthetic grouping of tables to explicitly define operator precedence
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 6e53537..f002572 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -480,6 +480,28 @@
 	// --------------------------------------------------------------------

 

 	/**

+	 * From Tables

+	 *

+	 * This function implicitly groups FROM tables so there is no confusion

+	 * about operator precedence in harmony with SQL standards

+	 *

+	 * @access	public

+	 * @param	type

+	 * @return	type

+	 */

+	function _from_tables($tables)

+	{

+		if (! is_array($tables))

+		{

+			$tables = array($tables);

+		}

+		

+		return '('.implode(', ', $tables).')';

+	}

+

+	// --------------------------------------------------------------------

+	

+	/**

 	 * Insert statement

 	 *

 	 * Generates a platform-specific insert string from the supplied data