Error: SELECT scr.id,scr.dat,scr.time,scr.title, scr.addedby,scr.views, sum( rt.rateup ) as rateup, sum(rt.ratedown) as ratedown,(sum(rt.rateup)-sum(rt.ratedown)) as toprate, scr.htmlenable FROM scraps scr, rating rt WHERE scr.id = rt.scrapid && scr.status='REVD' and scr.type in(1,2,-1) and scr.id not in(select sid from tagmap where tid in(28,943) group by sid) GROUP BY scr.id HAVING toprate !=0 order by toprate desc limit 0,15

Got error 28 from storage engine