selectWhere works