@oof2win2 is correct. When joining tables, subqueries, CTEs and a column name exists in more than 1 data source in query context, its generally a good idea to refer to it prefixed by the data source.
Some engines, in some SQL clauses might even throw an error due to ambiguous references, so it becomes a must.