Out of resources when opening file '/dev/shm/#sql_bd1_0.MAI' (Errcode: 24 "Too many open files")
SELECT c.ArticleID, c.ArticleSlug, s.`CategoryID`, s.`CategorySlug` FROM SC_articles c LEFT JOIN SC_category_articles s ON c.`ArticleCategoryID`=s.`CategoryID` LEFT JOIN SC_category_articles2articles d ON c.`ArticleID`=d.ArticleID WHERE (c.`ArticleCategoryID`=123 OR d.CategoryID =123 ) AND c.`ArticleEnable` = 1 group by c.`ArticleID` ORDER BY c.`ArticleSort`+1, c.`ArticleDate` DESC, `ArticleTitle_ru`