$checklist = $_POST['aramasec'];
foreach($checklist as $list) {
     
    $alt_kategoriler = $list.',';
     
    $depourunlersor=$db->prepare("SELECT * FROM depourunler WHERE alt_kategori IN(?)");
    $depourunlersor->execute([$alt_kategoriler]);
     
}