[AD, RD]{bugfix} Added missing joins to lecture logic