SELECT CONCAT(maintb.name, ', ', country1.country, ', ', region.region,', ', house.house)
AS ADDRESS FROM maintb
LEFT JOIN country1
ON country1.id = {0}
LEFT JOIN region
ON region.id ={1}
LEFT JOIN house
ON house.id ={2}