[pg]: fixed order position in select query