The attend/primary profile insert info 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 '3984,'profile',1073,'35.00')' at line 2 INSERT INTO cart(user_reg_userid,contentid,content_type,event_eventid,fee_amount) VALUES (,3984,'profile',1073,'35.00') Function insert info 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 '11704,'function',1073, '1','')' at line 2 INSERT INTO cart (user_reg_userid,contentid,content_type,event_eventid, function_quantity,fee_amount) VALUES (,11704,'function',1073, '1','') the regid : 0 the sql: INSERT INTO registration(user_reg_userid,event_eventid,date_and_time,primary_regid, entry_mode, adm_id) VALUES (,1073,'2017-09-28 19:43:11','0', 'self',0)The attend/primary profile insert info INSERT INTO cart(user_reg_userid,contentid,content_type,event_eventid,fee_amount) VALUES (3000002138,3980,'profile',1073,'0.00') the regid : 1046379 the sql: INSERT INTO registration(user_reg_userid,event_eventid,date_and_time,primary_regid, entry_mode, adm_id) VALUES (3000002138,1073,'2017-09-28 19:43:11','0', 'self',0)