Postgres Use Variable In Where Clause Is Ambiguous