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='west acheson industrial' AND City='west acheson industrial' 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='west acheson industrial' AND City='west acheson industrial' AND IBGTable<>'cal' and ListAgentMLSID = 'cLEGAUBL' LIMIT 0,20) b