
September 12th, 2012, 11:33 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 3
Time spent in forums: 1 h 3 m 5 sec
Reputation Power: 0
|
|
|
Unknown column 'InstructorID' in 'on clause'
I have seen this error on this forum before and I have read the help documents and PHP information on changing this statement to 5.*, however, I can't seem to get it right.
What I have is:
$Query = runquery(
'SELECT Dispatch.*, Student.FirstName AS SFirstName, Student.LastName AS SLastName, Instructor.FirstName AS IFirstName, Instructor.LastName As ILastName
FROM Dispatch, Student
LEFT JOIN Instructor ON InstructorID = Instructor.ID
WHERE Student.ID = Dispatch.StudentID ');
Unfortunately I am getting an error, despite how I try to re-write this code which states:
Error was: Unknown column 'InstructorID' in 'on clause'
Can anybody else me better understand why this is occuring? I know that I need to re-write the LEFT JOIN but I am not entirely sure how.
Thank you.
|