Guard the prune's NOT IN against the classic NULL trap: a JSON-null cast array element would surface as SQL NULL in the referenced set, making name NOT IN (…, NULL) evaluate NULL for every row → silently prune nothing. Filter NULLs out of the subquery. (Plex cast-explore S4 review)