MySQL Query Error: SELECT @rank:=el1.rank FROM ( SELECT @rank:=@rank+1 AS rank, el0.* FROM ( SELECT BE.ID as ID,BE.NAME as NAME,BE.IBLOCK_ID as IBLOCK_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,BE.DETAIL_TEXT as DETAIL_TEXT,BE.DETAIL_PICTURE as DETAIL_PICTURE,BE.PREVIEW_TEXT as PREVIEW_TEXT, FPS0.PROPERTY_736 as PROPERTY_SOURCE_URL_VALUE, concat(BE.ID , ':' , 736) as PROPERTY_SOURCE_URL_VALUE_ID, FPS0.PROPERTY_741 as PROPERTY_ARTICLE_VIDEO_VALUE, concat(BE.ID , ':' , 741) as PROPERTY_ARTICLE_VIDEO_VALUE_ID, FPS0.PROPERTY_1213 as PROPERTY_FORUM_THREAD_ID_VALUE, concat(BE.ID , ':' , 1213) as PROPERTY_FORUM_THREAD_ID_VALUE_ID, FPS0.PROPERTY_1214 as PROPERTY_FORUM_COUNT_POSTS_VALUE, concat(BE.ID , ':' , 1214) as PROPERTY_FORUM_COUNT_POSTS_VALUE_ID,BE.IBLOCK_SECTION_ID as IBLOCK_SECTION_ID, FPS0.PROPERTY_735 as PROPERTY_MORE_ARTICLES_VALUE, FPS0.PROPERTY_740 as PROPERTY_DOCTOR_ID_VALUE, concat(BE.ID , ':' , 740) as PROPERTY_DOCTOR_ID_VALUE_ID, FPS0.PROPERTY_803 as PROPERTY_AUTHOR_VALUE, concat(BE.ID , ':' , 803) as PROPERTY_AUTHOR_VALUE_ID,BE.SHOW_COUNTER as SHOW_COUNTER,BE.CODE as CODE,BE.TAGS as TAGS,DATE_FORMAT(BE.TIMESTAMP_X, '%d.%m.%Y %H:%i:%s') as TIMESTAMP_X,BE.DETAIL_TEXT_TYPE as DETAIL_TEXT_TYPE,BE.PREVIEW_TEXT_TYPE as PREVIEW_TEXT_TYPE 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_s32 FPS0 ON FPS0.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 (354))) ) BES ON BES.IBLOCK_ELEMENT_ID = BE.ID WHERE 1=1 AND ( ((((BE.IBLOCK_ID = '32')))) AND ((((BE.ACTIVE='Y')))) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) ORDER BY BE.ACTIVE_FROM desc ,BE.ID desc ) el0 ) el1 WHERE el1.ID = 221562 [[126] Incorrect key file for table '/tmp/#sql_7a09_2.MYI'; try to repair it]

DB query error.
Please try later.