Add missing "where" clause