Module: advertising
Class: CAdvBanner
File: /var/www/vhosts/sudar.su/httpdocs/bitrix/modules/advertising/classes/mysql/advertising.php
Function: GetList
Line: 601
MySQL Query Error: SELECT DISTINCT if (( (B.DATE_SHOW_FROM<=now() or B.DATE_SHOW_FROM is null or length(B.DATE_SHOW_FROM)<=0) and (B.DATE_SHOW_TO>=now() or B.DATE_SHOW_TO is null or length(B.DATE_SHOW_TO)<=0) and (ifnull(B.MAX_SHOW_COUNT,0)>ifnull(B.SHOW_COUNT,0) or ifnull(B.MAX_SHOW_COUNT,0)=0) and (ifnull(B.MAX_CLICK_COUNT,0)>ifnull(B.CLICK_COUNT,0) or ifnull(B.MAX_CLICK_COUNT,0)=0) and (ifnull(B.MAX_VISITOR_COUNT,0)>ifnull(B.VISITOR_COUNT,0) or ifnull(B.MAX_VISITOR_COUNT,0)=0) and (B.ACTIVE='Y') and (B.STATUS_SID='PUBLISHED') and (T.ACTIVE='Y') and (C.DATE_SHOW_FROM<=now() or C.DATE_SHOW_FROM is null or length(C.DATE_SHOW_FROM)<=0) and (C.DATE_SHOW_TO>=now() or C.DATE_SHOW_TO is null or length(C.DATE_SHOW_TO)<=0) and (ifnull(C.MAX_SHOW_COUNT,0)>ifnull(C.SHOW_COUNT,0) or ifnull(C.MAX_SHOW_COUNT,0)=0) and (ifnull(C.MAX_CLICK_COUNT,0)>ifnull(C.CLICK_COUNT,0) or ifnull(C.MAX_CLICK_COUNT,0)=0) and (ifnull(C.MAX_VISITOR_COUNT,0)>ifnull(C.VISITOR_COUNT,0) or ifnull(C.MAX_VISITOR_COUNT,0)=0) and (C.ACTIVE='Y') ), 'green', 'red') LAMP, B.*, B.FIRST_SITE_ID, B.FIRST_SITE_ID LID, if(B.SHOW_COUNT<=0,0,round((B.CLICK_COUNT*100)/B.SHOW_COUNT,2)) CTR, DATE_FORMAT(B.DATE_LAST_SHOW, '%d.%m.%Y %H:%i:%s') DATE_LAST_SHOW, DATE_FORMAT(B.DATE_LAST_CLICK, '%d.%m.%Y %H:%i:%s') DATE_LAST_CLICK, DATE_FORMAT(B.DATE_SHOW_FROM, '%d.%m.%Y') DATE_SHOW_FROM, DATE_FORMAT(B.DATE_SHOW_TO, '%d.%m.%Y') DATE_SHOW_TO, DATE_FORMAT(B.DATE_SHOW_FIRST, '%d.%m.%Y %H:%i:%s') DATE_SHOW_FIRST, DATE_FORMAT(B.DATE_CREATE, '%d.%m.%Y %H:%i:%s') DATE_CREATE, DATE_FORMAT(B.DATE_MODIFY, '%d.%m.%Y %H:%i:%s') DATE_MODIFY, C.NAME CONTRACT_NAME, T.NAME TYPE_NAME FROM b_adv_banner B INNER JOIN b_adv_type T ON (T.SID = B.TYPE_SID) INNER JOIN b_adv_contract C ON (C.ID = B.CONTRACT_ID) WHERE (1=1 AND ( ( (upper(B.TYPE_SID) like upper('INDEX_BANNER') and B.TYPE_SID is not null) ) ) AND ( B.ACTIVE='Y' ) ) ORDER BY B.WEIGHT [Got error 28 from storage engine]

DB query error.
Please try later.