Database ERROR: 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 '\n SELECT v.naam, v.smorf, p.klasse, v.naam_algemeen, v.aantal_vlakken, v.ope' at line 1#0 databaseClass->handleError() called at [/data/sites/web/smorfnl/www/php/databaseClass.php:54] #1 databaseClass->runQuery(\n SELECT v.naam, v.smorf, p.klasse, v.naam_algemeen, v.aantal_vlakken, v.open_gesloten, \n vp.puntgroep,vp.aantal_correlaat, vp.aantal_niet_correlaat, vp.max_aantal\n ,GROUP_CONCAT(DISTINCT(vp.max_aantal)) as max_aantallen\n ,GROUP_CONCAT(vp.puntgroep) as puntgroepen\n ,GROUP_CONCAT(distinct(p.klasse)) as klassen\n FROM vorm v\n JOIN vorm_puntgroep vp ON vp.vorm_id = v.id\n JOIN puntgroep p ON vp.puntgroep=p.naam\n WHERE 1=1 AND aantal_vlakken= AND v.naam=\'\' AND klasse=\'\' AND v.naam_algemeen=\'\' AND (max_aantal=\'n\' or max_aantal>=) GROUP BY v.id ORDER BY aantal_vlakken, p.id DESC) called at [/data/sites/web/smorfnl/www/php/database.php:34] #2 database_query(\n SELECT v.naam, v.smorf, p.klasse, v.naam_algemeen, v.aantal_vlakken, v.open_gesloten, \n vp.puntgroep,vp.aantal_correlaat, vp.aantal_niet_correlaat, vp.max_aantal\n ,GROUP_CONCAT(DISTINCT(vp.max_aantal)) as max_aantallen\n ,GROUP_CONCAT(vp.puntgroep) as puntgroepen\n ,GROUP_CONCAT(distinct(p.klasse)) as klassen\n FROM vorm v\n JOIN vorm_puntgroep vp ON vp.vorm_id = v.id\n JOIN puntgroep p ON vp.puntgroep=p.naam\n WHERE 1=1 AND aantal_vlakken= AND v.naam=\'\' AND klasse=\'\' AND v.naam_algemeen=\'\' AND (max_aantal=\'n\' or max_aantal>=) GROUP BY v.id ORDER BY aantal_vlakken, p.id DESC) called at [/data/sites/web/smorfnl/www/includes/48forms.php:100] #3 include(/data/sites/web/smorfnl/www/includes/48forms.php) called at [/data/sites/web/smorfnl/www/includes/template.php:138] #4 include(/data/sites/web/smorfnl/www/includes/template.php) called at [/data/sites/web/smorfnl/www/crystals_48forms_form.php:7]