Query:
SELECT sa.*, sd.productId as supersededProductId, sg.productId as supersedingProductId
FROM tecdoc_superseded_articles sa
LEFT JOIN tecdoc_article sd On sd.id = sa.supersededArticleId
LEFT JOIN tecdoc_article sg On sg.id = sa.supersedingArticleId
WHERE sg.productId = 148951
Error message
MySQL server has gone away
Trace:
#0 /var/www/vhosts/falcon-parts.cz/httpdocs/vendor/dibi/dibi/src/Dibi/Drivers/MySqliDriver.php(151): Dibi\Drivers\MySqliDriver::createException('MySQL server ha...', 2006, 'SELECT sa.*...')
#1 /var/www/vhosts/falcon-parts.cz/httpdocs/vendor/dibi/dibi/src/Dibi/Connection.php(275): Dibi\Drivers\MySqliDriver->query('SELECT sa.*...')
#2 /var/www/vhosts/falcon-parts.cz/httpdocs/vendor/dibi/dibi/src/Dibi/Connection.php(203): Dibi\Connection->nativeQuery('SELECT sa.*...')
#3 /var/www/vhosts/falcon-parts.cz/httpdocs/application/lib/Model/Dibi.php(66): Dibi\Connection->query(Array)
#4 /var/www/vhosts/falcon-parts.cz/httpdocs/application/lib/Model/Tecdoc/Supplier/SupersededArticles.php(44): Model_Dibi->query(Array)
#5 /var/www/vhosts/falcon-parts.cz/httpdocs/class/Product.php(1738): Model_Tecdoc_Supplier_SupersededArticles->findSupersedingByProductId(148951)
#6 /var/www/vhosts/falcon-parts.cz/httpdocs/class/Helpers/ProductsSmartyHelper.php(294): Product->getSupersedingArticlesWithProductId()
#7 /var/www/vhosts/falcon-parts.cz/httpdocs/class/Template/Product.php(362): Helpers\ProductsSmartyHelper::smartyProductsSupersededProducts(Object(Product))
#8 /var/www/vhosts/falcon-parts.cz/httpdocs/class/Template/Product.php(101): Template\Product->getSupersededProducts()
#9 /var/www/vhosts/falcon-parts.cz/httpdocs/class/Template/System.php(42): Template\Product->loadTemplateSmartyData()
#10 /var/www/vhosts/falcon-parts.cz/httpdocs/class/LayoutSmarty.php(30): Template\System->render()
#11 /var/www/vhosts/falcon-parts.cz/httpdocs/class/Reflex.php(455): LayoutSmarty::render(Object(PageData), 'pt_product')
#12 /var/www/vhosts/falcon-parts.cz/httpdocs/index.php(78): Reflex::display()
#13 {main}