Postgresql Use Variable In Selector