Duplicate Order Error When Placing Order

If I place an order It will go through fine,



As soon as I duplicate the order with the SAME item, same account, same credit card, I get this error:







[color=#000000]

[font=Courier][size=3]Database error:[/size][/font] Duplicate entry '3021097418-16777215' for key 'PRIMARY' b[/b]

[font=Courier][size=3]Invalid query:[/size][/font] INSERT INTO cscart_order_details (item_id, order_id, product_id, product_code, price, amount, extra) VALUES ('3021097418', '16777227', '29812', '1EN5.019.02', '134.96', '1', 'a:7:{s:15:"product_options";a:0:{}s:13:"return_period";s:2:"10";s:7:"product";s:59:"TomTom VIA 1505T 5-Inch GPS Navigator with Lifetime Traffic";s:10:"company_id";s:1:"0";s:6:"is_edp";s:1:"N";s:12:"edp_shipping";s:1:"N";s:10:"base_price";d:134.960000000000007958078640513122081756591796875;}')[/color][color=#000000]

[font=Courier][size=3]Backtrace:[/size][/font][/color] File: /home/bigjmart/public_html/core/fn.database.php Line: 296 Function: db_error File: /home/bigjmart/public_html/core/fn.cart.php Line: 543 Function: db_query File: /home/bigjmart/public_html/controllers/customer/checkout.php Line: 367 Function: fn_place_order File: /home/bigjmart/public_html/core/fn.control.php Line: 555 Function: include File: /home/bigjmart/public_html/core/fn.control.php Line: 410 Function: fn_run_controller File: /home/bigjmart/public_html/index.php Line: 14 Function: fn_dispatch





Any info would be great. Does it have something to do with my MYSQL setup??

Seems like their is a value in the database that doesn't like duplicates (being the product ID or name)