Код |
---|
$arFilter = array( 'IBLOCK_ID' => 19, array( 'LOGIC' => 'AND', array('PROPERTY_USER' => 1), array('PROPERTY_USER' => 2), ) ); $resElements = CIBlockElement::GetList( Array("date_active_from"=>"DESC"), $arFilter, false, false, Array("ID", "NAME", "PROPERTY_user") ); |
Код |
---|
2010-11-01 14:11:25 - main - MySql Query Error: SELECT DISTINCT BE.ID as ID,BE.NAME as NAME, FPV1.VALUE as PROPERTY_USER_VALUE, FPV1.ID as PROPERTY_USER_VALUE_ID,IF(EXTRACT(HOUR_SECOND FROM BE.ACTIVE_FROM)>0, DATE_FORMAT(BE.ACTIVE_FROM, '%d.%m.%Y %H:%i:%s'), DATE_FORMAT(BE.ACTIVE_FROM, '%d.%m.%Y')) as ACTIVE_FROM FROM b_iblock B INNER JOIN b_lang L ON B.LID=L.LID INNER JOIN b_iblock_element BE ON BE.IBLOCK_ID = B.ID LEFT JOIN b_iblock_property FP1 ON FP1.IBLOCK_ID=B.ID AND FP1.CODE='USER' LEFT JOIN b_iblock_element_property FPV1 ON FP1.ID=FPV1.IBLOCK_PROPERTY_ID AND FPV1.IBLOCK_ELEMENT_ID=BE.ID WHERE 1=1 AND B.ID IN (0,19) AND ( (BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL) ) AND ((((BE.IBLOCK_ID = '19')))) AND ((((BE.0='AND')) OR ((BE.0='')) OR ((BE.0='')))) ORDER BY BE.ACTIVE_FROM desc [Unknown column 'BE.0' in 'where clause'] |