Only attempt to query if :personIds would have a non-empty value