SQL Error: Server shutdown in progress at /home/shef/isras.ru/html/dreamedit/includes/class.Events.php line 510
Array
(
    [code] => 1053
    [message] => Server shutdown in progress
    [query] => SELECT *,SUBSTRING(IF(t.date2='',t.date,t.date2),1,10) AS a FROM
			(SELECT  ie.el_id AS ARRAY_KEY, ie.*,IF(ie.itype_id=2 AND id2.icont_text>id.icont_text,id2.icont_text,id.icont_text) AS date,
				IFNULL(id2.icont_text,0) AS date2 FROM adm_ilines_element AS ie, adm_ilines_content AS ic INNER JOIN adm_ilines_content AS id ON id.el_id=ic.el_id AND (id.icont_var='date' )INNER JOIN adm_ilines_content AS id2 ON id2.el_id=ic.el_id AND (id2.icont_var='date2' OR id2.icont_var='date3') INNER JOIN adm_ilines_content AS ss ON ss.el_id=ic.el_id AND ss.icont_var='status' AND ss.icont_text=1  LEFT OUTER JOIN adm_ilines_content AS s2 ON s2.el_id=ic.el_id AND s2.icont_var='status2'   INNER JOIN adm_ilines_element AS e ON e.el_id=ic.el_id  LEFT OUTER JOIN adm_ilines_content AS m ON m.el_id=ic.el_id AND m.icont_var='main' AND m.icont_text=1 WHERE ( ie.itype_id=2 OR  ie.itype_id=3 OR  ie.itype_id=14 OR  ie.itype_id=15 OR  ie.itype_id=16 OR  ie.itype_id=8 OR  ie.itype_id=91) AND ie.itype_id <>14  AND ie.el_id = ic.el_id  AND (ic.icont_var  = 'date' OR ic.icont_var='date2') AND ic.icont_text <> '' AND ic.icont_text IS NOT NULL  AND ((ie.itype_id <> 3 AND ie.itype_id<>8) OR m.icont_text=1)  AND (20241121<>20210317 OR ie.itype_id<>14)  AND (e.itype_id<> 15 OR s2.icont_text=1)   AND (REPLACE(SUBSTRING(id2.icont_text,1,10),'.','') = '20241121')  GROUP BY ie.el_id  ) AS t  WHERE REPLACE(SUBSTRING(IF(t.date2='',t.date,t.date2),1,10),'.','')='20241121' ORDER BY date2  DESC   LIMIT 0, 10   
    [context] => /home/shef/isras.ru/html/dreamedit/includes/class.Events.php line 510
)