I have worked out one error (speechmarks) but I still have the same problem in that CourseCategoryID does not exist - which as I say is impossible - its there!!
Amended:
$getCourses = Course::get()->innerJoin("course_coursecategories", "\"Rel\".\"CourseID\" = \"Course\".\"ID\"", "Rel")
->where("\"Course\".\"SubjectAreaID\" = $subjectId")
->where("\"course_coursecategories\".\"CourseCategoryID\" = $courseCategoryId");
Thanks in advance!
Posted to: Many-to-many Unknown column | Show Thread | Post Reply