nos activit├ęs

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 'ORDER BY data DESC' at line 1 in SELECT * FROM attivita INNER JOIN attivita_ln ON = attivita_ln.id_attivita WHERE id_lang = '4' AND active = 1 AND data_fine >= '2017-10-21' AND id_attivita = ORDER BY data DESC