sql error: Unknown column 'redbcalgary.rets_property_listing.Matrix_Unique_ID' in 'on clause'
SELECT *,'2' FROM (SELECT * FROM redbcalgary.rets_property_listing INNER JOIN redbcalgary.creb_openhouse ON redbcalgary.rets_property_listing.Matrix_Unique_ID = redbcalgary.creb_openhouse.Listing_MUI WHERE Community='meeting creek' AND City='meeting creek' AND IBGTable<>'cal' LIMIT 0,20) a UNION ALL SELECT *,'2' FROM (SELECT * FROM redbcalgary.excl_property_listing INNER JOIN redbcalgary.creb_openhouse ON redbcalgary.rets_property_listing.Matrix_Unique_ID = redbcalgary.creb_openhouse.Listing_MUI WHERE Community='meeting creek' AND City='meeting creek' AND IBGTable<>'cal' and ListAgentMLSID = 'cLEGAUBL' LIMIT 0,20) b