Postgres Use Variable In Where Clause Is Ambiguous A Bad