Minor improvement -- you could modify this string to say "for inner table" in the special case of tableIdx != 0 to maybe help debug join errors.