You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND id_lizenzgebiet = 139 AND origin IS NULL' at line 5---SELECT * FROM tabelle_daily_site_access WHERE seitenalias = 'kurseseite' AND datum_zugriff = CURDATE() AND id_vertragspartner = AND id_lizenzgebiet = 139 AND origin IS NULL You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' 139, NOW(), 'kurseseite', 1, NULL)' at line 2---INSERT INTO tabelle_daily_site_access(id_vertragspartner,id_lizenzgebiet,datum_zugriff,seitenalias,access_count, origin) VALUES( , 139, NOW(), 'kurseseite', 1, NULL)
test

Entschuldigung! Diese Seite konnte leider nicht gefunden werden.