I'm trying to execute the query bellow but I'm getting the error: The multi-part identifier 'T2.ID' could not be bound.

```
            SELECT DISTINCT 
                T4.ID 
        FROM    dbo.TABELA1 T1, 
                dbo.TABELA2 T2, 
                dbo.TABELA3 T3, 
                dbo.TABELA4 T4 
                INNER JOIN dbo.TABELA5 T5 ON T4.ID = T5.ID 
                INNER JOIN dbo.TABELA6 T6 ON T5.ID = T6.ID 
                INNER JOIN dbo.TABELA7 T7 ON T6.ID = T7.ID
                INNER JOIN dbo.TABELA8 T8 ON T7.ID = T8.ID AND <b>T2.ID</b> = T8.ID
        WHERE   T1.ID = T2.OID

```

Could anybody point me the right way to avoid this error?