diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index d0e1092..ed6eadb 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -214,7 +214,7 @@
 	function escape_str($str)	

 	{

 		// Access the CI object

-		$CI->get_instance();

+		$CI =& get_instance();

 		

 		// Escape single quotes

 		return str_replace("'", "''", $CI->input->_remove_invisible_characters($str));