Salve a tutti ho un problema su una query di inserimento su una mia applicazione web. L'errore è il seguente:

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 'Riferimento Ordine n. 71'',''2008-04-22'','0,60','3,60','1',''FATTURATA'','1','0' at line 1

la query invece la seguente:

$SQL="INSERT INTO fatture (Modalita_pagamenti_idModalita_pagamenti,idOrdine, desc_fatture,data_Fatture,IVA_fatture,totale_fattu re,idCliente,stato,idAgenzia,idAgente,perc_agente, comm_ar,comm_ac) VALUES ('".$modp."','".$idordine."','".$desc1."','".$da." ','".$totaleiva."','".$totale."','".$fatturare_a." ','".$s."','".$age."','".$idAgente."','".$percentu ale."','".$comm_ar."','".$comm_ac."')";


Grazie a tutti per ogni intervento