MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred
Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len FROM `page` WHERE page_namespace = '108' AND page_title = 'Rebecca_Tucker_(20)' LIMIT 1
Function: Article::pageData
Error: 1041 Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space (werelate-cluster.cluster-c3oqctrbv6xf.us-east-1.rds.amazonaws.com)
' in /var/www/html/w/includes/Database.php:647
Stack trace:
#0 /var/www/html/w/includes/Database.php(604): Database->reportQueryError('Out of memory; ...', 1041, 'SELECT page_id...', 'Article::pageDa...', false)
#1 /var/www/html/w/includes/Database.php(987): Database->query('SELECT page_id...', 'Article::pageDa...')
#2 /var/www/html/w/includes/Database.php(1006): Database->select('page', Array, Array, 'Article::pageDa...', Array)
#3 /var/www/html/w/includes/Article.php(283): Database->selectRow('page', Array, Array, 'Article::pageDa...')
#4 /var/www/html/w/includes/Article.php(295): Article->pageData(Object(DatabaseMysql), Array)
#5 /var/www/html/w/includes/Wiki.php(208): Article->pageDataFromTitle(Object(DatabaseMysql), Object(Title))
#6 /var/www/html/w/includes/Wiki.php(48): MediaWiki->initializeArticle(Object(Title), Object(WebRequest))
#7 /var/www/html/w/index.php(131): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#8 {main}

Exception caught inside exception handler: exception 'DBUnexpectedError' with message 'Error in fetchObject(): Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space' in /var/www/html/w/includes/Database.php:764
Stack trace:
#0 /var/www/html/w/includes/Database.php(1995): Database->fetchObject(false)
#1 /var/www/html/w/includes/LinkBatch.php(90): ResultWrapper->fetchObject()
#2 /var/www/html/w/includes/LinkBatch.php(69): LinkBatch->executeInto(Object(LinkCache))
#3 /var/www/html/w/includes/Skin.php(194): LinkBatch->execute()
#4 /var/www/html/w/includes/Skin.php(173): Skin->preloadExistence()
#5 /var/www/html/w/includes/SkinTemplate.php(113): Skin->initPage(Object(OutputPage))
#6 /var/www/html/w/skins/MonoBook.php(28): SkinTemplate->initPage(Object(OutputPage))
#7 /var/www/html/w/includes/SkinTemplate.php(162): SkinMonoBook->initPage(Object(OutputPage))
#8 /var/www/html/w/includes/OutputPage.php(613): SkinTemplate->outputPage(Object(OutputPage))
#9 /var/www/html/w/includes/Exception.php(53): OutputPage->output()
#10 /var/www/html/w/includes/Exception.php(70): MWException->reportHTML()
#11 /var/www/html/w/includes/Exception.php(145): MWException->report()
#12 /var/www/html/w/includes/Exception.php(179): wfReportException(Object(DBQueryError))
#13 [internal function]: wfExceptionHandler(Object(DBQueryError))
#14 {main}