replacing $wpdb->escape, which is deprecated in wp 3.6, with esc_sql - http://core.trac.wordpress.org/ticket/24774
Merge pull request #1 from voceconnect/replace_wpdb_escape-trac_24474

replacing $wpdb->escape, which is deprecated in wp 3.6, with esc_sql - h...