SELECT
profile_fields_data.field_id,
profile_fields_data.value,
profile_fields.field_type
FROM
cscart_profile_fields_data AS profile_fields_data
LEFT JOIN cscart_profile_fields AS profile_fields ON profile_fields_data.field_id = profile_fields.field_id
WHERE
object_id = 2
AND object_type = 'S'