Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 a.pid HAVING sum(ab) > 0 ORDER BY 4 DESC LIMIT 6' at line 1' in /var/www/rypar/supercup.cz/includes/libraries/db.php:111
Stack trace:
#0 /var/www/rypar/supercup.cz/includes/libraries/db.php(111): PDO->query('SELECT b.sid,c....')
#1 /var/www/rypar/supercup.cz/includes/libraries/liga/Stats.php(43): db::selectquery('SELECT b.sid,c....')
#2 /var/www/rypar/supercup.cz/includes/class/firstcup.php(21): Stats->getHPtop()
#3 /var/www/rypar/supercup.cz/handlers.php(21): include('/var/www/rypar/...')
#4 /var/www/rypar/supercup.cz/index.php(34): require_once('/var/www/rypar/...')
#5 {main}
thrown in /var/www/rypar/supercup.cz/includes/libraries/db.php on line 111