Please attach it. The one on the server doesn't appear to have any store in database code at all... Oh I see it is paypal express only.
My guess is that the insert is failing for some reason for the other rows. Maybe a required field with no value that doesn't allow null.
To debug you can add code to pp_confirm.php.add this after line 259:
Then before the redirect that will now be onl ine 262 add: