object(PDOStatement)#3 (1) {
["queryString"]=>
string(116) "select max(year(dato)) as max,min(year(dato)) as min from hks_avtaler where avlyst=0 and avdeling= group by avdeling"
}
Fatal error: Uncaught Exception: 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 avdeling' at line 1select max(year(dato)) as max,min(year(dato)) as min from hks_avtaler where avlyst=0 and avdeling= group by avdeling in /customers/6/4/0/samsitt.net/httpd.www/cg/class/database.php:37
Stack trace:
#0 /customers/6/4/0/samsitt.net/httpd.www/cg/stat_bruker_timer.php(89): Database->getRow('select max(year...')
#1 {main}
thrown in /customers/6/4/0/samsitt.net/httpd.www/cg/class/database.php on line 37