This sql fails:
select * from RRICallouts as r
JOIN LevelToCalloutsJT as lc on ( `r.__kp_RecID` = `lc._kf_RecID~Callout` )
JOIN Levels as l ON ( `lc._kf_RecID~Level` = `l.__kp_RecID` )
where `l.__kp_RecID` = 201006221644060009
#1054 - Unknown column 'l.__kp_RecID' in 'where clause
This works:
select `__kp_RecID` from Levels as l ;
Using MySQL 5.0.77 on some linux variant