Some help about extrafield related to another extrafield

Hello.

I have an extra field set as “Select from database”, code is “fk_contact_id” and value is set to

element_contact:fk_socpeople:element_id::fk_c_type_contact=2743652 AND element_id=$ID$

It outputs the ID of the linked thirdparty contact for my Object, where 2743652 defines my module. This one is working OK.

However, I need to output the first name and last name of this contact. I’ve tried to set another “Select from database” custom field and used this example for value:

user:firstname|lastname:options_fk_contact_id|fk_socpeople

But this one is not working.

Any help is appreciated.