Updated table reference for joins