Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php	(revision 12527)
+++ wp-includes/formatting.php	(working copy)
@@ -2219,8 +2219,7 @@
  * @return string The cleaned $sql
  */
 function esc_sql( $sql ) {
-	global $wpdb;
-	return $wpdb->escape( $sql );
+	return addslashes($sql);
 }
 
 
