Hi Soon,
Apologies for the length of time for me to investigate, but I have time now.
I haven't been able to find out how to write an advanced SQL and dynamically determine the catalog.
So instead, I plan to check if the table exists first, so it still returns the diff of the entity, but doesn't find the label values when the foreign key table is in a different than the standard catalog.
I hope this will work for you and others using different catalogs.
Kind regards,
Stuart