MySQL Query Error: SELECT FPEN0.VALUE as PROPERTY_BRAND_VALUE, FPEN0.ID as PROPERTY_BRAND_ENUM_ID,BE.NAME as NAME,BE.SORT as SORT,BE.ID as ID, COUNT( BE.ID) as CNT 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 FP0 ON FP0.IBLOCK_ID = B.ID AND FP0.CODE='BRAND' LEFT JOIN b_iblock_element_property FPV0 ON FPV0.IBLOCK_PROPERTY_ID = FP0.ID AND FPV0.IBLOCK_ELEMENT_ID = BE.ID LEFT JOIN b_iblock_property_enum FPEN0 ON FPEN0.PROPERTY_ID = FP0.ID AND FPV0.VALUE_ENUM = FPEN0.ID INNER JOIN ( SELECT DISTINCT B.ID FROM b_iblock B INNER JOIN b_iblock_group IBG ON IBG.IBLOCK_ID = B.ID WHERE (( IBG.GROUP_ID IN (2) AND IBG.PERMISSION >= 'R' AND (IBG.PERMISSION='X' OR B.ACTIVE='Y') )) AND ((((B.IBLOCK_TYPE_ID LIKE 'jetphone')))) AND ((((B.ID = '48')))) ) BB ON BB.ID = BE.IBLOCK_ID INNER JOIN ( SELECT DISTINCT BSE.IBLOCK_ELEMENT_ID FROM b_iblock_section_element BSE INNER JOIN b_iblock_section BS ON BSE.IBLOCK_SECTION_ID = BS.ID WHERE (((BS.ID = 443)) AND ((BS.ID <> 453 OR BE.IN_SECTIONS='N'))) ) BES ON BES.IBLOCK_ELEMENT_ID = BE.ID WHERE 1=1 AND ( ((((B.IBLOCK_TYPE_ID LIKE 'jetphone')))) AND ((((BE.IBLOCK_ID = '48')))) AND ((((BE.ACTIVE='Y')))) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) GROUP BY FPEN0.VALUE, FPEN0.ID,BE.NAME,BE.SORT,BE.ID ORDER BY BE.NAME asc ,BE.SORT asc ,BE.ID desc [Unknown column 'BE.IN_SECTIONS' in 'where clause']
DB query error.
Please try later. |