SMY_ERROR_OUTPUT:

FUNCTION: ()

PAGE: /kurser.php

MYSQL_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 '' at line 1

in:

QUERY: "SELECT * FROM EFTER2010_kursus k JOIN EFTER2010_kursus_afholdelse ka ON k.id = ka.kursus_id JOIN EFTER2010_afholdelse_ny a ON a.id = ka.afholdelse_id WHERE k.status = 1 AND k.id = 251/"