By-election candidate misleads voters over same-sex marriage