Fatal error: Uncaught exception Exception with message Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY tl_msm_photos.id ASC' at line 1 (SELECT * FROM tl_msm_photos WHERE tl_msm_photos.pid = ORDER BY tl_msm_photos.id ASC) thrown in /var/www/html/system/modules/core/library/Contao/Database/Statement.php on line 317
#0 /var/www/html/system/modules/core/library/Contao/Database/Statement.php(261): Contao\Database\Statement->query()
#1 /var/www/html/system/modules/core/library/Contao/Model.php(505): Contao\Database\Statement->execute(NULL)
#2 /var/www/html/system/modules/core/library/Contao/Model.php(405): Contao\Model::find(Array)
#3 /var/www/html/system/modules/msm_university/models/MsmPhotosModel.php(52): Contao\Model::findBy(Array, NULL, Array)
#4 /var/www/html/system/modules/msm_university/modules/UniversityView.php(110): Contao\MsmPhotosModel::getGallaryById(NULL)
#5 /var/www/html/system/modules/msm_university/modules/UniversityView.php(82): Contao\UniversityView->get_gallary(NULL)
#6 /var/www/html/system/modules/core/modules/Module.php(148): Contao\UniversityView->compile()
#7 /var/www/html/system/modules/msm_university/modules/UniversityView.php(42): Contao\Module->generate()
#8 /var/www/html/system/modules/core/elements/ContentModule.php(63): Contao\UniversityView->generate()
#9 /var/www/html/system/modules/core/library/Contao/Controller.php(446): Contao\ContentModule->generate()
#10 /var/www/html/system/modules/core/modules/ModuleArticle.php(181): Contao\Controller->getContentElement(Object(Contao\Model\Collection))
#11 /var/www/html/system/modules/core/modules/Module.php(148): Contao\ModuleArticle->compile()
#12 /var/www/html/system/modules/core/modules/ModuleArticle.php(59): Contao\Module->generate()
#13 /var/www/html/system/modules/core/library/Contao/Controller.php(374): Contao\ModuleArticle->generate(false)
#14 /var/www/html/system/modules/core/library/Contao/Controller.php(227): Contao\Controller->getArticle(Object(Contao\Model\Collection), false, false, 'main')
#15 /var/www/html/system/modules/core/pages/PageRegular.php(109): Contao\Controller->getFrontendModule('0', 'main')
#16 /var/www/html/index.php(286): Contao\PageRegular->generate(Object(Contao\PageModel))
#17 /var/www/html/index.php(447): Index->run()
#18 {main}