Martial Aspects

Error! Couldn't execute SQL.

select tLevel.levelid as level_levelid,tLevel.*,tLevelUser.*,tCourse.levelsrequireprevious from tCourse,tLevel left outer join tLevelUser on (tLevelUser.userid = and tLevelUser.levelid = tLevel.levelid) where tCourse.courseid = tLevel.courseid and tCourse.courseid = 1 and tLevel.visiblef=1 order by tCourse.courseorderid,tLevel.levelorderid

1064 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 'and tLevelUser.levelid = tLevel.levelid) where tCourse.courseid = tLevel.course' at line 3