HPCC-10818 Fix problem with MANY LOOKUP in a child loopp/query

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>