Fatal error: Uncaught mysqli_sql_exception: 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 'AND
image.image_id NOT IN (SELECT master_id FROM image_var...' at line 4 in /data01/virt6865/domeenid/www.soccernet.ee/new/lib/class/SQL.class.php:19
Stack trace:
#0 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/class/SQL.class.php(19): mysqli_query(Object(mysqli), 'SELECT COUNT(*)...')
#1 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/class/AlbumImageList.class.php(116): SQL->__construct('SELECT COUNT(*)...')
#2 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/class/PublicNewsArticlePackage.class.php(366): AlbumImageList->isAlbumThumbnailed(Object(Album))
#3 /data01/virt6865/domeenid/www.soccernet.ee/new/template/compile/e897e8b8517643570e25565b369b5c0caa6b9c6f_0.file.article_comment.tpl.cache.php(41): PublicNewsArticlePackage->getRelatedGalleryList()
#4 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_template_resource_base.php(123): content_668b8b9cf26797_40674575(Object(Smarty_Internal_Template))
#5 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#6 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_internal_runtime_updatecache.php(38): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#7 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_template_cached.php(143): Smarty_Internal_Runtime_UpdateCache->updateCache(Object(Smarty_Template_Cached), Object(Smarty_Internal_Template), false)
#8 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
#9 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#10 /data01/virt6865/domeenid/www.soccernet.ee/new/lib/smarty/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), 'em2024_article-...', NULL, NULL, 1)
#11 /data01/virt6865/domeenid/www.soccernet.ee/em2024/index.php(92): Smarty_Internal_TemplateBase->display('em2024/article_...', 'em2024_article-...')
#12 {main}
thrown in /data01/virt6865/domeenid/www.soccernet.ee/new/lib/class/SQL.class.php on line 19