2012-01-06 19:02:26 UTC
I am facing this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM user_course_confirmation ucc, user_course_selection ucs, course_session cs ' at line 5
Where my code is:
Select
ucc.User_Course_Confirmation_id, ucc.User_Course_Selection_User_Course_Selection_id,
ucs.User_Course_Selection_id, ucs.User_User_id, ucs.Course_Session_Course_Session_id,
cs.Course_Session_id, cs.Course_Course_id,
FROM user_course_confirmation ucc, user_course_selection ucs, course_session cs
WHERE ucs.Course_Session_Course_Session_id = '".$Course_Session_id."'
AND ucs.Course_Session_Course_Session_id = cs.Course_Session_id
AND ucc.User_Course_Selection_User_Course_Selection_id = ucs.User_Course_Selection_id
How to solve this error? Thanks. =)