fix the bug `findAndCountAll` not working on postgresql.

copy `where` array, avoid changed by internal.