SQL Error: Out of resources when opening file '/tmp/#sql_176d_0.MYI' (Errcode: 24 - Too many open files) at /home/shef/vestnik.isras.ru/html/dreamedit/filters/filter.book_izdat.php line 24
Array
(
    [code] => 23
    [message] => Out of resources when opening file '/tmp/#sql_176d_0.MYI' (Errcode: 24 - Too many open files)
    [query] => SELECT c.el_id,c.icont_text AS title,d2.icont_text AS date2,p.icont_text AS picsmall,
           an.icont_text AS annots,ss.icont_text AS contents
            FROM adm_ilines_content AS c
            INNER JOIN adm_ilines_content AS d2 ON d2.el_id=c.el_id AND d2.icont_var='date2'
            INNER JOIN adm_ilines_content AS p ON p.el_id=c.el_id AND p.icont_var='picsmall'
            INNER JOIN adm_ilines_content AS s1 ON s1.el_id=c.el_id AND s1.icont_var='status'
            INNER JOIN adm_ilines_content AS s2 ON s2.el_id=c.el_id AND s2.icont_var='status2'
            INNER JOIN adm_ilines_content AS an ON an.el_id=c.el_id AND an.icont_var='annots'
            INNER JOIN adm_ilines_content AS ss ON ss.el_id=c.el_id AND ss.icont_var='contents'
            WHERE
               c.icont_var='title' AND
               s1.icont_text=1
              AND (ISNULL(s2.icont_text) OR s2.icont_text =0)
            ORDER BY RAND() LIMIT 1
        
    [context] => /home/shef/vestnik.isras.ru/html/dreamedit/filters/filter.book_izdat.php line 24
)