diff --git a/lib/models/datastores/Mysql.php b/lib/models/datastores/Mysql.php
index <HASH>..<HASH> 100644
--- a/lib/models/datastores/Mysql.php
+++ b/lib/models/datastores/Mysql.php
@@ -324,7 +324,7 @@ class Mysql extends SqlDatabase
     
     public function escape($string)
     {
-        return mysql_real_escape_string($string);
+        return self::$db->real_escape_string($string);
     }
     
     protected function getLastInsertId()
Removed a deprecated escape method ... about time we moved to PDO