I nostri pacchetti

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 offerte INNER JOIN offerte_ln ON offerte.id = offerte_ln.id_offerte WHERE id_lang = '1' AND active = 1 AND data_fine >= '2021-10-18' AND id_offerte = ORDER BY data DESC