Add substititution variables in WHERE