$name = array("file1.exe", "file2.exe", "file3.exe");
foreach ($name as $id) {
$md5[] = preg_replace('/[^0-9]/', '', md5($id));
}
$md5 = implode(', ', $md5);
$sql->select("count", "download", "WHERE `name` IN ($md5)");
while ($row = $sql->gra()) {
$count[] = $row['count'];
}