you should not be storing anything in the orderID column, do not bind the order id column to any value
since it is auto increment, you should let the data base set the value for that column and not try to force the session Id into it, that is whats causing the problem.