foreach ($data['params'] as $params) {
$sql .= " AND EXISTS (SELECT * FROM product_param pp WHERE p.product_id = pp.product_id AND pp.param_id IN (" . implode(', ', array_map('intval', $params)) . "))";
}
array(
"CONDITION" => "#^/about_us/useful_information/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/about_us/useful_information/index.php",
),
array(
"CONDITION" => "#^/about_us/our-parks/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/about_us/our-parks/index.php",
),