Fixed an issue with left join variables not getting set.