In a MySQL query, one of the columns in the LEFT JOIN returns “Unknown column”

The issue was that the tr.term_taxomony_id is not a column in either of the two joined tables, but in another table referred to further on in the statement. Now it is obvious to me that there would have to be a common key between the two joined tables.