La rularea query-ului :

SELECT * FROM ad_banners where (ban_pos='b7' ) and ban_id IN (SELECT ban_id FROM ads_banners_community WHERE com_id=1084 and (ban_type='b7' ) ) order by rand()

a aparut eroarea:

Got error 28 from storage engine