Could not access teacher list -select concat(c.firstname,' ',c.surname) as teacher from contacts as c left join teacher_list as t on c.id=t.id where t.tid=