Database error: Invalid SQL: select TB_ANAG_POST00.POST_ID, TB_ANAG_POST00.OWNER, TB_ANAG_POST00.CDATA, TB_ANAG_POST00.LOWNER, TB_ANAG_POST00.LDATA, TB_ANAG_POST00.TIMESTAMP, TB_ANAG_POST00.XPOST01, TB_ANAG_POST00.XPOST02, TB_ANAG_POST00.XPOST08 as XPOST08_COD, CONCAT((CASE WHEN ALIAS_UT2.XUT04 is null then '' ELSE ALIAS_UT2.XUT04 end),' ',(CASE WHEN ALIAS_UT2.XUT05 is null then '' ELSE ALIAS_UT2.XUT05 end)) as XPOST08, TB_ANAG_POST00.XPOST03, TB_ANAG_POST00.XPOST13, TB_POST01.DESCR as POST01, TB_POST01.POST01_ID , TB_ANAG_POST00.XPOST04, TB_ANAG_POST00.XPOST05, TB_ANAG_POST00.XPOST07, TB_ANAG_POST00.XPOST09, TB_ANAG_POST00.XPOST12, (case when TB_ANAG_POST00.XPOST14 = '20170628' then 2 when TB_ANAG_POST00.XPOST14 > '20170628' then 1 else 0 end) as data_ord, XPOST14 from TB_ANAG_POST00, TB_ANAG_UT00 as ALIAS_UT2, TB_POST01 where 1>0 AND TB_ANAG_POST00.XPOST01 = '13' AND TB_ANAG_POST00.XPOST08 = ALIAS_UT2.UT_ID and TB_POST01.POST01_ID = TB_ANAG_POST00.POST01 AND FIND_IN_SET('canzone d'autore',REPLACE(REPLACE(lower(XPOST07),' ,', ','), ', ',',') ) AND XPOST11=1 AND XPOST12 <= 20170628 order by data_ord desc,XPOST12 desc,XPOST14 desc
MySQL Error: 1064 (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 '',REPLACE(REPLACE(lower(XPOST07),' ,', ','), ', ',',') ) AND XPOST11=1 AND XPOST' at line 1)