object(PDOStatement)#3 (1) {
  ["queryString"]=>
  string(188) "SELECT year(dato) as ar, sum(barn+unge+voksne+eldre+fraarr) as antall FROM hks_avtaler WHERE kunde= and (barn+unge+voksne+eldre+fraarr) > 0 and avlyst=0 and ikke_mott=0 group by year(dato)"
}
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 'and (barn+unge+voksne+eldre+fraarr) > 0 and avlyst=0 and ikke_mott=0 group by ye' at line 1SELECT year(dato) as ar, sum(barn+unge+voksne+eldre+fraarr) as antall FROM hks_avtaler WHERE kunde= and (barn+unge+voksne+eldre+fraarr) > 0 and avlyst=0 and ikke_mott=0 group by year(dato) in /customers/6/4/0/samsitt.net/httpd.www/cg/class/database.php:52 Stack trace: #0 /customers/6/4/0/samsitt.net/httpd.www/cg/stat2.php(13): Database->getRows('SELECT year(dat...') #1 {main} thrown in /customers/6/4/0/samsitt.net/httpd.www/cg/class/database.php on line 52