A Problem has been Encountered

DB Error: Out of resources when opening file './profeeds_carma/cms_gals.MYD' (Errcode: 24)
SQL: select count(distinct c.galid) from cms_gals c, cms_gal_sites s , cms_gals_info v left join cms_gal_categories vc on (v.galid=vc.galid) left join cms_categories cc on (vc.catid=cc.catid) left join cms_gal_producer vp on (v.galid=vp.galid) left join cms_producers cp on (vp.prodid=cp.prodid) left join cms_gal_locations vl on (v.galid=vl.galid) left join cms_locations cl on (vl.locid=cl.locid) left join cms_gal_groups vg on (v.galid=vg.galid) left join cms_groups cg on (vg.gid=cg.gid) left join cms_gal_actors va on (v.galid=va.galid) left join cms_actors ca on (va.actorid=ca.actorid) where c.galid=v.galid AND c.type IN ("gal") AND s.siteid='34' AND s.active>0 AND s.active <= UNIX_TIMESTAMP('2017-09-25 06:00:04') AND (s.until >= UNIX_TIMESTAMP('2017-09-25 06:00:04') OR s.until=0) AND c.galid=s.galid AND c.type IN ("gal") AND c.setid='SBPG - limobull tf'