SELECT "imspunkte".id, "imspunkte".typid, "imspunkte".x, "imspunkte".y, "imspunkte".z, "imspunkte".NAMEPR1 as n1, "imspunkte".NAMEPR2 as n2, "imspunkte".NAMEPR3 as n3, bild, bild360, "imsinfo".sterne, "imstypen".name1 as t_name FROM "imspunkte" INNER JOIN "imstypen" ON "imspunkte".typid = "imstypen".typid LEFT JOIN "imsinfo" ON "imspunkte".id = "imsinfo".punktid WHERE ("imsinfo".sprache = 1 or "imsinfo".sprache IS NULL) AND x>= and x<= and y>= and y<= and imstypen.minScale < and imstypen.maxScale >= ERROR: syntax error at or near "and" LINE 1: ...sprache = 1 or "imsinfo".sprache IS NULL) AND x>= and x<= an... ^