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 'datum > '2011/12/31' AND datum < '2013/01/01' GROUP BY winnaar ORDER BY aantal D' at line 1