Ai8gh I had this damn error today and the solution was easy in case anyone sees it in their forums
just run this query
REPAIR TABLE phpbb_forums; REPAIR TABLE phpbb_categories;