Fix huge issue where there can be N lookup fields for the same table in a record