Use separate variable for generated where clause
Use short array syntax consistently