$arSel ect = Array("ID","NAME","PROPERTY_45","PROPERTY_90"); $rsElements = CIBlockElement::GetList( Array( "SORT"=>"ASC" ), Array( "ACTIVE"=>"Y", "IBLOCK_ID"=> "8"), false, false, $arSel ect );
SEL ECT b_iblock_element.ID, b_iblock_element.NAME, b_iblock_element_property.VALUE FR OM b_iblock_element LEFT JOIN b_iblock_element_property ON ( b_iblock_element.ID = b_iblock_element_property.IBLOCK_ELEMENT_ID ) WHERE b_iblock_element.ACTIVE = 'Y' AND b_iblock_element.IBLOCK_ID = '8' AND b_iblock_element_property.IBLOCK_PROPERTY_ID = '45'