An error occured while processing this request

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (kommuneid = 0 OR landsdekkende = '1')' at line 1

The error occured on line 140 in /var/www/studenttorget/application/components/core/db.php.

Stacktrace:

#1 Problem in /var/www/studenttorget/application/components/core/db.php on line 140 at PDOStatement->execute(Array)
#2 Problem in on line at DBQuery->execQuery("AND (kommuneid = 0 OR landsdekkende = '1')")
#3 Problem in /var/www/studenttorget/application/components/core/db.php on line 196 at call_user_func_array(Array, Array)
#4 Problem in /var/www/studenttorget/sites/studentkatalogen/views/catalog/baseview.php on line 166 at DB::query("AND (kommuneid = 0 OR landsdekkende = '1')")
#5 Problem in /var/www/studenttorget/sites/studentkatalogen/views/catalog/baseview.php on line 24 at BaseView->getNumDiscounts
#6 Problem in /var/www/studenttorget/sites/studentkatalogen/views/catalog/deals/default.php on line 54 at BaseView->Execute
#7 Problem in /var/www/studenttorget/application/components/core/dispatcher.php on line 707 at DealDefaultView->Execute("bu", "alle-medlemmer-av-studenttorget-far-dameklipp-med-vask-og-harkur-til-399-herreklipp-med-styling-til-359-eller-dameklipp-med-farge-striping-av-ettervekst-hele-haret-kr-990-1490")
#8 Problem in /var/www/studenttorget/application/components/core/dispatcher.php on line 486 at Dispatcher::callObjectMethod(DealDefaultView, "execute", Array)
#9 Problem in /var/www/studenttorget/application/components/core/dispatcher.php on line 309 at Dispatcher->__loadView("catalog/deals/default.php", Array, Array)
#10 Problem in /var/www/studenttorget/application/components/core/dispatcher.php on line 323 at Dispatcher->__findView(Array, Array)
#11 Problem in /var/www/studenttorget/application/components/core/dispatcher.php on line 323 at Dispatcher->__findView(Array, Array)
#12 Problem in /var/www/studenttorget/application/components/core/dispatcher.php on line 178 at Dispatcher->__findView(Array)
#13 Problem in /var/www/studenttorget/sites/studentkatalogen/webroot/index.php on line 14 at Dispatcher->Route("studentrabatter/deals/bu/alle-medlemmer-av-studenttorget-far-dameklipp-med-vask-og-harkur-til-399-herreklipp-med-styling-til-359-eller-dameklipp-med-farge-striping-av-ettervekst-hele-haret-kr-990-1490")

When reporting this error, please include this code: 42000

Click here to go back