500 Internal Server Error

HY000;1030;Got error 28 from storage engine; SELECT * FROM (SELECT c.* FROM categories c WHERE pub_gc >= :category_visibility_min AND content_type_id = :content_type_id AND category_id NOT IN (1,2,3) ORDER BY ctr DESC LIMIT 300) t ORDER BY t.name