Query Error (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 ty.Jaar = 2019 GROUP BY ty.nTypeID ORDER BY sort, LeaseVanaf, name' at line 21
Trace:
#0 /home/blackorange/site/htdocs/_core/lib/Query.php(361): Db->query('\n\t\t\t\tSELECT \n\t\t...')
#1 /home/blackorange/site/htdocs/apps/site/models/Typen.php(139): Query->fetch('resource', false)
#2 /home/blackorange/site/htdocs/apps/site/controllers/MerkenController.php(297): Typen::fetchModelTypes(Array, Array)
#3 [internal function]: MerkenController->type('hyundai', 'ioniq-5d-119413', '28kwh-electric-...', 'specificaties')
#4 /home/blackorange/site/htdocs/_core/lib/Application.php(152): call_user_func_array(Array, Array)
#5 /home/blackorange/site/htdocs/_core/lib/Application.php(116): Application->execute(Array)
#6 /home/blackorange/site/htdocs/_core/lib/Application.php(60): Application->run()
#7 /home/blackorange/site/htdocs/index.php(53): Application->__construct()
#8 {main}