SQL Error: Out of memory (Needed 107374208 bytes) at /home/shef/test.fnisc.ru/html/dreamedit/filters/filter.newsarchive.php line 30
Array
(
    [code] => 5
    [message] => Out of memory (Needed 107374208 bytes)
    [query] => SELECT DISTINCT year FROM (
				SELECT DISTINCT substring(c.icont_text,1,4) AS year
                  FROM adm_ilines_content AS c
				  INNER JOIN adm_ilines_element AS e ON e.el_id=c.el_id AND ( e.itype_id=1 OR  e.itype_id=2 OR  e.itype_id=3 OR  e.itype_id=14) AND e.itype_id<>14  WHERE (c.icont_var='date' OR c.icont_var='date2') 
				 UNION ALL 
				 SELECT DISTINCT substring(c.icont_text,1,4) AS year
                  FROM isras2015.adm_ilines_content AS c
				  INNER JOIN isras2015.adm_ilines_element AS e ON e.el_id=c.el_id AND  e.itype_id=14 
				  WHERE (c.icont_var='date' OR c.icont_var='date2') AND SUBSTRING(c.icont_text,1,4)>2018 
				 
				 ) AS z
				  ORDER BY substring(z.year,1,4) DESC 
				  
				 
    [context] => /home/shef/test.fnisc.ru/html/dreamedit/filters/filter.newsarchive.php line 30
)