Abfrage fehlgeschlagen (select)
SELECT VAPLID,VPLTXW,VPLVTM,VPLUHR,VPLSPNAME, LEFT(DATE_FORMAT(CONCAT(SUBSTRING(VPLVTM,1,4),'-',SUBSTRING(VPLVTM,5,2),'-',SUBSTRING(VPLVTM,7,2)),'%W'),2) VPLWT, VPLART,TXTID FROM THGVAPL WHERE VAPLID=
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