Same code as above, just making it clearer:
COPY CODE
$like[] = $wpdb->prepare ("value = %s OR value LIKE %s", $value, $escaped);
}
$sql .= 'AND ('. implode (' OR ', $like). ')';
with
COPY CODE
$like[] = $wpdb->prepare ("value LIKE %s", $escaped);
}
$sql .= 'AND ('. implode (' AND ', $like). ')';