Где я сейчас? : Главная

MySQL Query Error: SELECT @rank:=el1.rank FROM ( SELECT @maxrank:=@maxrank+1 AS rank, el0.* FROM ( SELECT BE.IBLOCK_ID as IBLOCK_ID,BE.ID as ID,BE.NAME as NAME,BE.CODE as CODE,BE.IBLOCK_SECTION_ID as IBLOCK_SECTION_ID, FPV0.VALUE as PROPERTY_TYPE_HOTEL_3_VALUE, FPV0.ID as PROPERTY_TYPE_HOTEL_3_VALUE_ID,BE.SORT as SORT 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='TYPE_HOTEL_3' LEFT JOIN b_iblock_element_property FPV0 ON FPV0.IBLOCK_PROPERTY_ID = FP0.ID AND FPV0.IBLOCK_ELEMENT_ID = BE.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 IN (2481))) ) BES ON BES.IBLOCK_ELEMENT_ID = BE.ID WHERE 1=1 AND ( ((((BE.IBLOCK_ID = '14')))) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) ORDER BY BE.SORT asc ) el0 ) el1 WHERE el1.ID = 26651 [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.IBLOCK_ID as IBLOCK_ID,BE.ID as ID,' at line 3]

DB query error.
Please try later.