Allow select to filter with where clause