For reasons that should be obvious, this is murder to search for...
How do I do this in PDO:
SELECT thing FROM things WHERE thing_uid IN ( ... )
Create an array of as many ? as you have values, and throw that into the query.
?
$placeholders = array_fill(0, count($thingArray), '?'); $sql = "SELECT thing FROM things WHERE thing_uid IN (" . implode(',', $placeholders) . ")";