Use JOIN USING aliases in ruleutils.c

Use JOIN USING aliases in ruleutils.c

Edit