SELECT k.*, a.nachname, a.vorname, a.strasse_hausnr, a.plz, a.ort, a.ortsteil, a.firma, a.telefon, a.tour FROM konto k JOIN kunde ku ON k.kunde_id = ku.login_id JOIN adresse a ON ku.id = a.kunde_id JOIN zuordnung z ON ku.id = z.debitor WHERE k.code = 40 AND k.datum = '2022-05-22' AND a.adressart = 'LA' AND z.kreditor = ORDER BY a.tour, a.plz,a.ortsteil,k.produkt_id ASC

Error: 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 a.tour, a.plz,a.ortsteil,k.produkt_id ASC' at line 6

SELECT konto_id FROM kunde WHERE login_id =

Error: 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 '' at line 1

SELECT a.*, k2.id as ii, k2.preis as lPreis, p.*, k.preis, k.wochentag FROM produkt p JOIN konto k ON p.id = k.produkt_id JOIN kunde kd ON k.id = kd.konto_id JOIN kunde kk ON kk.id = p.lieferant_id JOIN adresse a ON a.kunde_id = kk.id JOIN konto k2 ON k2.produkt_id = p.id WHERE k2.code = 10 AND kd.kundentyp = '3000' AND k.code = 10 AND kd.id = AND k2.id =

Error: 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 k2.id =' at line 11