Assigning the join SQL to a variable and returning it right away is not necessary.