INSERT INTO carrello(session, user, prodotto, quantita, ip, data_aggiunta) VALUES ('ba4b5d3ae43afca957c1fcc4fcbed242', , 22, 1, '54.80.123.20', NOW() ) ON DUPLICATE KEY UPDATE user=user
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 ' 22, 1, '54.80.123.20', NOW() ) ON DUPLICATE KEY UPDATE user=user' at line 1