removing call to $wpdb->escape which has been deprecated since 3.6.

$wpdb->prepare will already properly escape the value