... ( `total_inc` ) ,`clotacao` = VALUES ( `clotacao` ) ,`prazo` = VALUES ( `prazo` ) ,`situacao` = VALUES ( `situacao` ) But, according with the array, the right sentence should be this: INSERT INTO `folha` ( `cemp`,`nfolha`,`cmat`,`cvandes`,`cvdorig`,`val_inf`, `val_calc` ,`total_inc`,`filial`,`clotacao`,`prazo`,`situacao` ...