I'm trying to display the information I have in these columns and it keeps telling me that the first_name column in my professors table is unknown. Does anyone know why? Please help me, I've tried everything. Thanks.
Here's the query:
SELECT courses.name, sections.section_name, professors.first_name, professors.last_name, classrooms.room
FROM courses
INNER JOIN course_section ON sections.id = course_section.section_id
INNER JOIN professor_course ON professors.id = professor_course.professor_id
WHERE courses.id = 1;