Remove useless where clause