Result optimization

Speeds up by using ANY VALUES instead of ID IN