Invalid query 
select distinct `year`, `number` from ar_magazins MAG
	 												join ar_rel_magazins_articles MAGAR on MAGAR.fk_magazin = MAG.id
													where MAGAR.fk_article = 819
													order by `year`, `number`
-- with message: Can't open file: './z269125_teleskop/ar_rel_magazins_articles.frm' (errno: 24 - Too many open files)