MySQL Query Error: SELECT BE.ID as ID,BE.IBLOCK_ID as IBLOCK_ID,BE.IBLOCK_SECTION_ID as IBLOCK_SECTION_ID,BE.NAME as NAME,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,B.DETAIL_PAGE_URL as DETAIL_PAGE_URL,BE.DETAIL_TEXT as DETAIL_TEXT,BE.DETAIL_TEXT_TYPE as DETAIL_TEXT_TYPE,BE.PREVIEW_TEXT as PREVIEW_TEXT,BE.PREVIEW_TEXT_TYPE as PREVIEW_TEXT_TYPE,BE.PREVIEW_PICTURE as PREVIEW_PICTURE, FPEN0.VALUE as PROPERTY_IMPORTANT_VALUE, FPEN0.ID as PROPERTY_IMPORTANT_ENUM_ID, concat(BE.ID , ':' , 72) as PROPERTY_IMPORTANT_VALUE_ID, FPEN1.VALUE as PROPERTY_PHOTO_FLAG_VALUE, FPEN1.ID as PROPERTY_PHOTO_FLAG_ENUM_ID, concat(BE.ID , ':' , 265) as PROPERTY_PHOTO_FLAG_VALUE_ID, FPEN2.VALUE as PROPERTY_AUDIO_FLAG_VALUE, FPEN2.ID as PROPERTY_AUDIO_FLAG_ENUM_ID, concat(BE.ID , ':' , 267) as PROPERTY_AUDIO_FLAG_VALUE_ID, FPEN3.VALUE as PROPERTY_VIDEO_FLAG_VALUE, FPEN3.ID as PROPERTY_VIDEO_FLAG_ENUM_ID, concat(BE.ID , ':' , 266) as PROPERTY_VIDEO_FLAG_VALUE_ID, FPEN4.VALUE as PROPERTY_VIDEOFACT_FLAG_VALUE, FPEN4.ID as PROPERTY_VIDEOFACT_FLAG_ENUM_ID, concat(BE.ID , ':' , 272) as PROPERTY_VIDEOFACT_FLAG_VALUE_ID, FPEN5.VALUE as PROPERTY_DOC_FLAG_VALUE, FPEN5.ID as PROPERTY_DOC_FLAG_ENUM_ID, concat(BE.ID , ':' , 269) as PROPERTY_DOC_FLAG_VALUE_ID, FPEN6.VALUE as PROPERTY_INFOGRAPHIKA_FLAG_VALUE, FPEN6.ID as PROPERTY_INFOGRAPHIKA_FLAG_ENUM_ID, concat(BE.ID , ':' , 268) as PROPERTY_INFOGRAPHIKA_FLAG_VALUE_ID, FPEN7.VALUE as PROPERTY_MAP_FLAG_VALUE, FPEN7.ID as PROPERTY_MAP_FLAG_ENUM_ID, concat(BE.ID , ':' , 270) as PROPERTY_MAP_FLAG_VALUE_ID, FPEN8.VALUE as PROPERTY_PHOTOFACT_FLAG_VALUE, FPEN8.ID as PROPERTY_PHOTOFACT_FLAG_ENUM_ID, concat(BE.ID , ':' , 271) as PROPERTY_PHOTOFACT_FLAG_VALUE_ID,L.DIR as LANG_DIR,BE.SORT as SORT,BE.CODE as CODE,BE.XML_ID as EXTERNAL_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 INNER JOIN b_iblock_element_prop_s21 FPS0 ON FPS0.IBLOCK_ELEMENT_ID = BE.ID LEFT JOIN b_iblock_property_enum FPEN0 ON FPEN0.PROPERTY_ID = 72 AND FPS0.PROPERTY_72 = FPEN0.ID LEFT JOIN b_iblock_property_enum FPEN1 ON FPEN1.PROPERTY_ID = 265 AND FPS0.PROPERTY_265 = FPEN1.ID LEFT JOIN b_iblock_property_enum FPEN2 ON FPEN2.PROPERTY_ID = 267 AND FPS0.PROPERTY_267 = FPEN2.ID LEFT JOIN b_iblock_property_enum FPEN3 ON FPEN3.PROPERTY_ID = 266 AND FPS0.PROPERTY_266 = FPEN3.ID LEFT JOIN b_iblock_property_enum FPEN4 ON FPEN4.PROPERTY_ID = 272 AND FPS0.PROPERTY_272 = FPEN4.ID LEFT JOIN b_iblock_property_enum FPEN5 ON FPEN5.PROPERTY_ID = 269 AND FPS0.PROPERTY_269 = FPEN5.ID LEFT JOIN b_iblock_property_enum FPEN6 ON FPEN6.PROPERTY_ID = 268 AND FPS0.PROPERTY_268 = FPEN6.ID LEFT JOIN b_iblock_property_enum FPEN7 ON FPEN7.PROPERTY_ID = 270 AND FPS0.PROPERTY_270 = FPEN7.ID LEFT JOIN b_iblock_property_enum FPEN8 ON FPEN8.PROPERTY_ID = 271 AND FPS0.PROPERTY_271 = FPEN8.ID WHERE 1=1 AND ( ((((BE.IBLOCK_ID = '21')))) AND ((((BE.ACTIVE='Y')))) AND (((BE.ACTIVE_TO >= now() OR BE.ACTIVE_TO IS NULL) AND (BE.ACTIVE_FROM <= now() OR BE.ACTIVE_FROM IS NULL))) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) ORDER BY BE.ACTIVE_FROM desc ,BE.SORT asc ,BE.ID desc LIMIT 25[Incorrect key file for table '/tmp/#sql1781f_277e_10.MYI'; try to repair it]

DB query error.
Please try later.