when I updated to version 3.6.1 I got this notification:
wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead.
I changed the all $wpdb->escape to esc_sql() but I don't know for some reason I get this error:
Fatal error: Call to undefined function esc_sql() in www\wp-content\sunrise.php on line 11