I am not able to reproduce the problem. when I visit your site, on the conform page I get the following error:
Duplicate entry '4' for key 1
it seams you are trying to store the value 4 in a column that does not except duplicates.
Most likely, in the store order details server behavior, you have bound the item ID from the cart to the Primary key Column of the orderdetails page