Fixed utter stupidity of using a join when not needed.