Query: INSERT INTO dc_ordini_prodotti ( id_prodotto ,codice ,titolo_it ,didascalia_it ,quantita ,prezzo ,peso_lordo ,aliquota_iva ,sconto_globale_percentuale ,disponibile ,id_padre ) VALUES ( 68730 ,'' ,'' ,'' ,1 , ,'' ,0.22 ,0 , ,9855155 ) 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 ''' ,0.22 ,0 , ,9855155 )' at line 24