OK, I've tried changing 'ofderreferenceid' into a varchar (80) to see if that helps as that's the field that holds the session id but I'm getting the same error
(I've corrected a typo and changed the name to 'orderreferenceid' as well updating both the confirm.php file and the database table - just for information)
Anyone got any ideas?