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 '}?^????g???n??b??ڱ?m?f?jW AND lang = 'it' GROUP BY TB.id ORDER BY rand() LIM' at line 1

SELECT * , TB.id AS ID FROM sys_prodotti AS TB LEFT JOIN sys_prodotti_lang AS TBL ON TB.id=TBL.id LEFT JOIN sys_prodotti_date as TJ ON TB.id=TJ.prodotto WHERE 1=1 AND TB.stato = '1' AND (giacenza > 1 OR calendario = 1) AND TB.ID <> }^gnbڱmfjW AND lang = 'it' GROUP BY TB.id ORDER BY rand() LIMIT 0,4

/index.php