Accept an array in a where clause and convert it to a regular expression with implode.