Fatal error: Uncaught PDOException: 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 ydatum=2025 and datum<=date(now()) or deltagarid=12810006 and kommunid= a...' at line 1 in /customers/1/8/f/microbirding.se/httpd.www/app/models/comp_model.php:48
Stack trace:
#0 /customers/1/8/f/microbirding.se/httpd.www/app/models/comp_model.php(48): PDOStatement->execute()
#1 /customers/1/8/f/microbirding.se/httpd.www/app/core/comp.php(60): comp_model->indcomp('12810006')
#2 /customers/1/8/f/microbirding.se/httpd.www/app/core/App.php(46): comp->indcomp('12810006')
#3 /customers/1/8/f/microbirding.se/httpd.www/index.php(4): App->__construct()
#4 {main}
thrown in /customers/1/8/f/microbirding.se/httpd.www/app/models/comp_model.php on line 48