hmm, i think might get it.
try this...
SELECT DISTINCT firstname, lastname, street, MAX(quantity) FROM tbl_customer, tbl_lists WHERE tbl_customer.custnumber = tbl_lists.custnumber WHERE pubid = '$mypubid'
im still kind of confused on what you are wanting from the pubid. but i imagine your query will be something like this. it may help if you show the query you have tried, so we can see what is running through your mind.
so is your query based upon a given pubid, and then you base the query off of that, or are you wanting to know this for all pubid's? what parameters does the query receive?