i have this:
$villes = \'\"paris\",\"fes\",\"rabat\"\'; $sql = \'SELECT distinct telecopie FROM `comptage_fax` WHERE `ville` IN(%s)\'; $query = $wpdb->
The prepare function also takes an array as the second parameter.
array
You can try converting $villes like this:
$villes
Current
Change it to
Now, try passing $villes to the prepare func and see if it works. Hope it helps.