Added missing where clause