[PrestaShopDatabaseException]

Server shutdown in progress

SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit`
FROM `ps_module` m
LEFT JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module`
LEFT JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook`
WHERE ((SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN(1)) = 1) AND (hm.id_shop IN(1))
GROUP BY hm.id_hook, hm.id_module
ORDER BY hm.`position`

at line 604 in file classes/db/Db.php

598. 		if ($webservice_call && $errno)
599. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. Query was : '.$sql, 97);
600. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
601. 		{
602. 			if ($sql)
603. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
604. 			throw new PrestaShopDatabaseException($this->getMsgError());
605. 		}
606. 	}
607. 
608. 	/**