The error indicates that you have a column type mismatch. This usually happens because you are storing the Session ID in a column type of INT. If you are storing the Session ID as the order ID, then your Order ID column type should be set to var char and similarly in your order details table as well.