When an order is created the customer surname is being applied in the firstname column of the db table. I have tried to find the sql query that executes the insert statement for a new order to no avail.
The process appears to happen between checkoutshipping.aspx and checkoutpayment.aspx
Where can I find the point where the order details are added to the db?