Fixed a bug in AR compiling, where select statements with arguments got incorrectly escaped (#3478).
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index a4ef2e4..9a7ef5d 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -95,7 +95,14 @@
 	{

 		if (is_string($select))

 		{

-			$select = explode(',', $select);

+			if ($protect_identifiers !== FALSE)

+			{

+				$select = explode(',', $select);

+			}

+			else

+			{

+				$select = array($select);

+			}

 		}

 	

 		foreach ($select as $val)

@@ -1749,6 +1756,6 @@
 	}

 	

 }

-
-/* End of file DB_active_rec.php */
+

+/* End of file DB_active_rec.php */

 /* Location: ./system/database/DB_active_rec.php */
\ No newline at end of file