Query: SELECT sv.video_id, sv.main_id, sv.title, sv.slug, sv.total_views, sv.duration, sv.likes, sv.rating, sv.rated_by, sv.add_time, sv.thumb, v.thumbs, s.source_id, s.name, i.url, GROUP_CONCAT(sct.name) AS categories, GROUP_CONCAT(sc.slug) AS slugs FROM 6_videos AS sv INNER JOIN 6_videos_category AS svc ON (svc.video_id = sv.video_id AND svc.category_id = 197) INNER JOIN video AS v ON (v.video_id = sv.main_id AND v.status = 1) INNER JOIN video_sources AS s ON (s.source_id = v.source_id) INNER JOIN video_imported AS i ON (i.video_id = v.video_id) LEFT JOIN 6_videos_category AS svcc ON (svcc.video_id = v.video_id) LEFT JOIN 6_categories AS sc ON (sc.category_id = svcc.category_id) LEFT JOIN 6_categories_translations AS sct ON (sct.category_id = sc.category_id AND sct.lang_id = 15) WHERE sv.orientation IN (1) GROUP BY sv.video_id ORDER BY sv.add_time DESC LIMIT 65
Error Message: Out of resources when opening file '/tmp/#sql_3ec445_4.MAD' (Errcode: 24 "Too many open files")
Error Number: 23