diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 220e6ed59a..b9138d7517 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -4679,7 +4679,9 @@ class BaseModelSqlv2 { `${parentTable.table_name}.${parentColumn.column_name}`, ).andOn( `${vTable.table_name}.${vChildCol.column_name}`, - this.dbDriver.raw('?', [row[childColumn.column_name]]), + this.dbDriver.raw('?', [ + row[childColumn.title] ?? row[childColumn.column_name], + ]), ); }); // .where(_wherePk(parentTable.primaryKeys, childId))