Changed misconfigured JOIN causing no records to be found when no replacement was set - Fixed issue #47