$arFilter = [
'IBLOCK_ID' => 1,
'PROPERTY_genres' => $array // !!!!!
];
$res = \Bitrix\Iblock\ElementTable::getList(array(
'select' => ['ID'],
'filter' => $arFilter,
));
while ($row = $res->fetch())
{
$arResult['id'][] = $row['ID'];
}
$dataClass = \Bitrix\Iblock\Iblock::wakeUp(1)->getEntityDataClass()
$element = $dataClass::getList([
'select' => ['ID'],
'filter' => ['@GENRES.VALUE' => $arrayIds]
])->fetchAll();