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 'GROUP BY id ORDER BY time DESC ...' at line 10
#0 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/ext/dibi/libs/DibiConnection.php(343): DibiMySqlDriver->query('\n            SE...')
#1 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/ext/dibi/libs/DibiConnection.php(261): DibiConnection->nativeQuery('\n            SE...')
#2 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/ext/dibi/dibi.php(229): DibiConnection->query(Array)
#3 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/model/pageModel.php(3058): dibi::query('\n            SE...', 'WHERE deleted =...', '\n            GR...', 'time DESC', '\n            LI...', 0, ', ', 9, '\n            ')
#4 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/app/functions2.php(146): pageModel::getPaneldataRightClanky('deleted = 0 AND...', 0, 'time DESC', 9)
#5 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/controller/pageController.php(806): vypisListing('clanok', Array, Array)
#6 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/controller/pageController.php(178): pageController->router()
#7 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/app/web.php(110): pageController->run()
#8 /data/7/8/7887f1b1-f2d1-4f7f-9055-7ffb2eab30ec/mikbaits.cz/web/index.php(136): web->controller()
#9 {main}