SELECT n_id, n_name, n_short, n_date, n_pic, n_rewrite, n_a_id, a_image FROM news LEFT JOIN advisor ON a_id=n_a_id WHERE n_show=1 AND n_type=1 AND n_date AND n_date<='2018-07-16' AND n_a_id=59 AND n_id<>1343 ORDER BY n_date DESC
Out of resources when opening file './vestirnajednicka/news.MYD' (Errcode: 24 "Too many open files")