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 ']discount AND sichtbarkeit = 1 LIMIT 1' at line 1
SELECT * , EXTRACT(YEAR FROM datum) AS jahr, EXTRACT(MONTH FROM datum) AS monat, EXTRACT(DAY FROM datum) AS tag FROM artikel WHERE id = 67]discount AND sichtbarkeit = 1 LIMIT 1