Eventi
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY data DESC' at line 1 in SELECT * FROM eventi INNER JOIN eventi_ln ON eventi.id = eventi_ln.id_eventi WHERE active = 1 AND id_lang = '1' AND id_eventi = ORDER BY data DESC