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 'ORDER BY y,m' at line 1
SQL-String: SELECT DISTINCT MONTH(datum) AS m, YEAR(datum) AS y FROM termine WHERE datum>='2010-09-06' AND cat_id= ORDER BY y,m
File: /termine/einzeltermin.php
