There is a code with which all unique values of the "driver" meta-field are selected.
$drivers_all = $wpdb->get_results("SELECT DISTINCT meta_value FROM wp_postmeta WHERE meta_key = 'driver'); Tell me how to add a value to exclude a certain category from the sample?