Anda dapat menggunakan IN-fungsi mysql
EDIT:Seperti yang dikatakan amosrevira, Anda harus melepaskan string Anda dalam array.
$myarray[1] = "'hi'";
$myarray[2] = "'there'";
$myarray[3] = "'everybody'";
$newarray = implode(", ", $myarray); //makes format 'hi', 'there', 'everybody'
SELECT * FROM myTable WHERE title IN ($newarray);