MySQL Query Error: SELECT @rank:=el1.rank FROM ( SELECT @rank:=@rank+1 AS rank, el0.* FROM ( SELECT BE.ID as ID,BE.CODE as CODE,BE.IBLOCK_ID as IBLOCK_ID,BE.NAME as NAME,B.DETAIL_PAGE_URL as DETAIL_PAGE_URL,L.DIR as LANG_DIR,BE.SORT as SORT,BE.XML_ID as EXTERNAL_ID,BE.IBLOCK_SECTION_ID as IBLOCK_SECTION_ID,B.IBLOCK_TYPE_ID as IBLOCK_TYPE_ID,B.CODE as IBLOCK_CODE,B.XML_ID as IBLOCK_EXTERNAL_ID,B.LID as LID 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='FLG_DET' LEFT JOIN b_iblock_element_property FPV0 ON FPV0.IBLOCK_PROPERTY_ID = FP0.ID AND FPV0.IBLOCK_ELEMENT_ID = BE.ID WHERE 1=1 AND ( ((((BE.IBLOCK_ID = '5')))) AND ((((BE.ACTIVE='Y')))) AND (((FPV0.VALUE_ENUM IS NOT NULL))) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) ORDER BY BE.NAME asc ,BE.SORT asc ) el0 ) el1 WHERE el1.ID = 584 [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank, el0.* FROM ( SELECT BE.ID as ID,BE.CODE as CODE,BE.IBLOCK_' at line 3]

DB query error.
Please try later.