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/DB_active_rec.php b/system/database/DB_active_rec.php
index 1ad4f3d..37bf9ed 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -1343,7 +1343,7 @@
 		if (count($this->ar_from) > 0)

 		{

 			$sql .= "\nFROM ";

-			$sql .= '(' . implode(', ', $this->ar_from) . ')';

+			$sql .= $this->_from_tables($this->ar_from);

 		}

 

 		if (count($this->ar_join) > 0)