Please Log in to join the conversation.
SELECT b.`name`
FROM `#__comprofiler_members` AS a
LEFT JOIN `#__users` AS b
ON b.`id` = a.`memberid`
WHERE a.`type` = 'Works at'
AND a.`referenceid` = '[user_id]'
ORDER BY a.`membersince` DESC
LIMIT 1
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
SELECT CONCAT( '<a href="index.php?option=com_comprofiler&task=userprofile&user=', b.`id`, '">', b.`name`, '</a>' )
FROM `#__comprofiler_members` AS a
LEFT JOIN `#__users` AS b
ON b.`id` = a.`memberid`
WHERE a.`type` = 'Works at'
AND a.`referenceid` = '[user_id]'
ORDER BY a.`membersince` DESC
LIMIT 1
Please Log in to join the conversation.
Please Log in to join the conversation.