add where clause

[#1234567]