You need to make sure that your 'id' field is incremental and that the max per customer is indeed correct. Also how do you define a customer by its name and/or address? For example, a name may not be unique enough so you may also need to link in the address. However, differences in spelling of the address may cause issues with your results.
Try the following (if name and address uniquely defines each customer):
SELECT customerName, address, max(id)
FROM orders
GROUP BY customerName, address;