Top Rated - Highest Rated Media

Query error:
SELECT v.*, g.*, (r.total_value/r.total_votes) as rating FROM media v LEFT JOIN rating r ON r.id = v.id LEFT JOIN `group` g ON g.group_id = v.groupid WHERE v.status = 'true' AND (`suspended`!=1 OR `suspended` IS NULL) ORDER BY (r.total_value/r.total_votes) DESC LIMIT 100

Got error 28 from storage engine