Fatal error: Uncaught exception Exception with message Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY sorting' at line 1 (SELECT * FROM tl_gallery WHERE pid = ORDER BY sorting) thrown in system/modules/core/library/Contao/Database/Statement.php on line 295
#0 system/modules/core/library/Contao/Database/Statement.php(264): Contao\Database\Statement->query()
#1 system/modules/gallery/ModuleGallery.php(56): Contao\Database\Statement->execute()
#2 system/modules/core/elements/ContentElement.php(265): ModuleGallery->compile()
#3 system/modules/gallery/ModuleGallery.php(24): Contao\ContentElement->generate()
#4 system/modules/core/library/Contao/Controller.php(484): ModuleGallery->generate()
#5 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#6 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#7 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#8 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
#9 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#10 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#11 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#12 index.php(20): Contao\FrontendIndex->run()
#13 {main}