You will need to pull three instances of the customer table on to the BAQ if you want to retrieve the different customers associated with the order.
join one to the order/inv on custnum, one on bill to custnum (btcustnum) and one to sold to custnum
There is probably a cleaner way of achieving this, but this is how i do it and seems to work fine