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 'AND id_lizenzgebiet = 1076
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 = 1076
AND origin IS NULL 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 ' 1076, NOW(), 'kurseseite', 1, NULL)' at line 2---INSERT INTO tabelle_daily_site_access(id_vertragspartner,id_lizenzgebiet,datum_zugriff,seitenalias,access_count, origin)
VALUES( , 1076, NOW(), 'kurseseite', 1, NULL)
KURSE
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 'AND id_kat_1 = 6
AND id_kat_2 = 1
AND id_kat_3' at line 4 SQL = SELECT data_json FROM tabelle_storage
WHERE id_table_ref_id = 1
AND ref_id =
AND id_kat_1 = 6
AND id_kat_2 = 1
AND id_kat_3 = 1