this is the original query
where(countries.map{|c| "zones.countries LIKE '%#{c}%'"}.join(' OR '))
now i would rewrite this query with ? operator like this
where(countries.map{|c| "zones.countries LIKE ?", "%#{c}%"}.join(' OR '))
but it doesn't work. Any suggestion? thx