MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT DISTINCT t12.smw_id AS id,t12.smw_title AS t,t12.smw_namespace AS ns,t12.smw_iw AS iw,t12.smw_subobject AS so,t12.smw_sortkey AS sortkey FROM `smw_object_ids` AS t12 INNER JOIN `smw_di_wikipage` AS t1 ON t12.smw_id=t1.s_id INNER JOIN `smw_di_blob` AS t4 ON t1.s_id=t4.s_id INNER JOIN `smw_di_blob` AS t6 ON t1.s_id=t6.s_id INNER JOIN `smw_di_blob` AS t8 ON t1.s_id=t8.s_id INNER JOIN `smw_di_blob` AS t10 ON t1.s_id=t10.s_id WHERE (t1.p_id='368' AND ((t4.o_hash='Spain') AND t4.p_id='351') AND ((t6.o_hash='USD') AND t6.p_id='354') AND ((t8.o_hash='Super Gasoline') AND t8.p_id='355') AND ((t10.o_hash='1998') AND t10.p_id='357')) ORDER BY t12.smw_sortkey ASC LIMIT 51
Function: SMW::getQueryResult
Error: 1927 Lost connection to backend server: connection closed by peer (server3: Generated event) (database_maxscale:4006)
' in /var/www/ISWiki/prod/current/lib/includes/db/Database.php:918
Stack trace:
#0 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(885): DatabaseBase->reportQueryError('Lost connection...', 1927, 'SELECT DISTINC...', 'SMW::getQueryRe...', false)
#1 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(1358): DatabaseBase->query('SELECT DISTINC...', 'SMW::getQueryRe...')
#2 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Queries.php(430): DatabaseBase->select('`smw_object_ids...', 'DISTINCT t12.sm...', '(t1.p_id='368' ...', 'SMW::getQueryRe...', Array)
#3 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Queries.php(307): SMWSQLStore3QueryEngine->getInstanceQueryResult(Object(SMWQuery), 12)
#4 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(354): SMWSQLStore3QueryEngine->getQueryResult(Object(SMWQuery))
#5 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php(505): SMWSQLStore3->getQueryResult(Object(SMWQuery))
#6 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Ask.php(40): SMWQueryProcessor::getResultFromQuery(Object(SMWQuery), Array, 2, 1)
#7 [internal function]: SMWAsk::render(Object(Parser), '[[Fuel Price Da...', '?Fuel Price Dat...', '?Fuel Price Dat...', 'format=sum')
#8 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3197): call_user_func_array(Array, Array)
#9 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#10 /var/www/ISWiki/prod/current/lib/extensions/ParserFunctions/ParserFunctions_body.php(227): PPFrame_DOM->expand(Object(PPNode_DOM))
#11 [internal function]: ExtParserFunctions::switchObj(Object(Parser), Object(PPTemplateFrame_DOM), Array)
#12 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3197): call_user_func_array('ExtParserFuncti...', Array)
#13 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#14 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#15 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#16 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1449): PPFrame_DOM->expand(Object(DOMElement), 4)
#17 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1467): PPTemplateFrame_DOM->getNumberedArgument('4')
#18 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3671): PPTemplateFrame_DOM->getArgument('4')
#19 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1062): Parser->argSubstitution(Array, Object(PPTemplateFrame_DOM))
#20 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3076): PPFrame_DOM->expand(Object(PPNode_DOM))
#21 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#22 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#23 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#24 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#25 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#26 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(2986): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#27 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/queryprinters/SMW_ResultPrinter.php(287): Parser->replaceVariables('{{Plot_data_fro...')
#28 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/queryprinters/SMW_ResultPrinter.php(235): SMWResultPrinter->handleNonFileResult('{{Plot_data_fro...', Object(SMWQueryResult), 2)
#29 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/queryprinters/SMW_ResultPrinter.php(202): SMWResultPrinter->buildResult(Object(SMWQueryResult))
#30 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php(512): SMWResultPrinter->getResult(Object(SMWQueryResult), Array, 2)
#31 /var/www/ISWiki/prod/current/lib/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Ask.php(40): SMWQueryProcessor::getResultFromQuery(Object(SMWQuery), Array, 2, 1)
#32 [internal function]: SMWAsk::render(Object(Parser), '[[Fuel Price Da...', '?Fuel_Price_Dat...', '?Fuel_Price_Dat...', '?Fuel_Price_Dat...', '?Fuel_Price_Dat...', 'sort=Fuel_Price...', 'format=template', 'template=Plot_d...', 'sep=,', 'link=none')
#33 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3197): call_user_func_array(Array, Array)
#34 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#35 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#36 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#37 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3185): PPFrame_DOM->expand(Object(PPNode_DOM))
#38 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#39 /var/www/ISWiki/prod/current/lib/extensions/ParserFunctions/ParserFunctions_body.php(139): PPFrame_DOM->expand(Object(PPNode_DOM))
#40 [internal function]: ExtParserFunctions::ifObj(Object(Parser), Object(PPTemplateFrame_DOM), Array)
#41 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3197): call_user_func_array('ExtParserFuncti...', Array)
#42 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#43 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#44 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#45 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#46 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#47 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(3357): PPFrame_DOM->expand(Object(PPNode_DOM))
#48 /var/www/ISWiki/prod/current/lib/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#49 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(2986): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#50 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(1099): Parser->replaceVariables('{{Fuel Price Fa...')
#51 /var/www/ISWiki/prod/current/lib/includes/parser/Parser.php(345): Parser->internalParse('{{Fuel Price Fa...')
#52 /var/www/ISWiki/prod/current/lib/includes/WikiPage.php(2914): Parser->parse('{{Fuel Price Fa...', Object(Title), Object(ParserOptions), true, true, 54423)
#53 /var/www/ISWiki/prod/current/lib/includes/PoolCounter.php(187): PoolWorkArticleView->doWork()
#54 /var/www/ISWiki/prod/current/lib/includes/Article.php(587): PoolCounterWork->execute()
#55 /var/www/ISWiki/prod/current/lib/includes/actions/ViewAction.php(40): Article->view()
#56 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(484): ViewAction->show()
#57 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(278): MediaWiki->performAction(Object(Article))
#58 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(593): MediaWiki->performRequest()
#59 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(503): MediaWiki->main()
#60 /var/www/ISWiki/prod/current/lib/index.php(58): MediaWiki->run()
#61 {main}

Exception caught inside exception handler: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT value,exptime FROM `objectcache` WHERE keyname = 'webmol_energypedia:resourceloader:filter:minify-css:7:c88e2bcd56513749bec09a7e29cb3ffa' LIMIT 1
Function: SqlBagOStuff::get
Error: 1927 Lost connection to backend server: connection closed by peer (server3: Generated event) (database_maxscale:4006)
' in /var/www/ISWiki/prod/current/lib/includes/db/Database.php:918
Stack trace:
#0 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(885): DatabaseBase->reportQueryError('Lost connection...', 1927, 'SELECT value,e...', 'SqlBagOStuff::g...', false)
#1 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(1358): DatabaseBase->query('SELECT value,e...', 'SqlBagOStuff::g...')
#2 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(1445): DatabaseBase->select('objectcache', Array, Array, 'SqlBagOStuff::g...', Array, Array)
#3 /var/www/ISWiki/prod/current/lib/includes/objectcache/SqlBagOStuff.php(124): DatabaseBase->selectRow('objectcache', Array, Array, 'SqlBagOStuff::g...')
#4 /var/www/ISWiki/prod/current/lib/includes/resourceloader/ResourceLoader.php(149): SqlBagOStuff->get('webmol_energype...')
#5 /var/www/ISWiki/prod/current/lib/includes/resourceloader/ResourceLoader.php(783): ResourceLoader->filter('minify-css', 'a:lang(ar), a:l...')
#6 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(2594): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array)
#7 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(3310): OutputPage->makeResourceLoaderLink(Array, 'styles')
#8 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(2407): OutputPage->buildCssLinks()
#9 /var/www/ISWiki/prod/current/lib/includes/SkinTemplate.php(465): OutputPage->headElement(Object(SkinIswiki))
#10 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(1982): SkinTemplate->outputPage()
#11 /var/www/ISWiki/prod/current/lib/includes/Exception.php(182): OutputPage->output()
#12 /var/www/ISWiki/prod/current/lib/includes/Exception.php(209): MWException->reportHTML()
#13 /var/www/ISWiki/prod/current/lib/includes/Exception.php(490): MWException->report()
#14 /var/www/ISWiki/prod/current/lib/includes/Exception.php(569): MWExceptionHandler::report(Object(DBQueryError))
#15 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(506): MWExceptionHandler::handle(Object(DBQueryError))
#16 /var/www/ISWiki/prod/current/lib/index.php(58): MediaWiki->run()
#17 {main}