MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred
Query: SELECT page_title,old_text,old_flags FROM `page`,`revision`,`text` WHERE page_is_redirect=0 AND page_namespace=8 AND page_latest=rev_id AND rev_text_id=old_id
Function: MessageCache::loadFromDB
Error: 1194 Table 'page' is marked as crashed and should be repaired (localhost)
' in /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Database.php:647
Stack trace:
#0 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Database.php(604): Database->reportQueryError('Table 'page' is...', 1194, 'SELECT page_ti...', 'MessageCache::l...', false)
#1 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Database.php(987): Database->query('SELECT page_ti...', 'MessageCache::l...')
#2 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/MessageCache.php(299): Database->select(Array, Array, 'page_is_redirec...', 'MessageCache::l...')
#3 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/MessageCache.php(226): MessageCache->loadFromDB()
#4 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/MessageCache.php(423): MessageCache->load()
#5 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/GlobalFunctions.php(450): MessageCache->get('mainpage', true, true)
#6 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/GlobalFunctions.php(409): wfMsgGetKey('mainpage', true, true, true)
#7 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/GlobalFunctions.php(358): wfMsgReal('mainpage', Array, true, true)
#8 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Wiki.php(74): wfMsgForContent('mainpage')
#9 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/index.php(105): MediaWiki->checkInitialQueries(NULL, 'view', Object(OutputPage), Object(WebRequest), Object(LanguageEn))
#10 {main}

Exception caught inside exception handler: exception 'DBUnexpectedError' with message 'Error in fetchObject(): Table 'page' is marked as crashed and should be repaired' in /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Database.php:764
Stack trace:
#0 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Database.php(1995): Database->fetchObject(false)
#1 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/LinkBatch.php(90): ResultWrapper->fetchObject()
#2 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/LinkBatch.php(69): LinkBatch->executeInto(Object(LinkCache))
#3 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Skin.php(194): LinkBatch->execute()
#4 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Skin.php(173): Skin->preloadExistence()
#5 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/SkinTemplate.php(108): Skin->initPage(Object(OutputPage))
#6 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/skins/MonoBook.php(28): SkinTemplate->initPage(Object(OutputPage))
#7 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/SkinTemplate.php(155): SkinMonoBook->initPage(Object(OutputPage))
#8 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/OutputPage.php(594): SkinTemplate->outputPage(Object(OutputPage))
#9 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Exception.php(53): OutputPage->output()
#10 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Exception.php(70): MWException->reportHTML()
#11 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Exception.php(145): MWException->report()
#12 /home/notesnl.com/data/htdocs/mediawiki-1.7.1/includes/Exception.php(179): wfReportException(Object(DBQueryError))
#13 [internal function]: wfExceptionHandler(Object(DBQueryError))
#14 {main}