Removed all instances of the deprecated $wpdb->escape