select compatibility from #__comprofiler as a, #__comprofiler as b, #__calccompatibility as c
where c.userelement = a.cb_elementint AND c.viewerelement = b.cb_elementint AND c.usersign = a.cb_signint AND c.viewersign = b.cb_signint AND a.id = [user_id] AND b.id = [cb:userdata field="user_id" user="#me" /]
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
SELECT DISTINCT ue.*, u.*, '' AS 'NA'
FROM jos_users u
JOIN jos_user_usergroup_map g
ON g.`user_id` = u.`id`
JOIN jos_comprofiler ue
ON ue.`id` = u.`id`
WHERE u.block = 0
AND ue.banned = 0
AND ue.approved = 1
AND ue.confirmed = 1
AND g.group_id IN (1, 6, 7, 2, 3, 4, 5, 10, 12, 8)
ORDER BY YOUR_SQL_WOULD_BE_HERE
LIMIT 0, 15
SELECT c.`compatibility` FROM `#__calccompatibility` AS c WHERE c.`userelement` = u.`id` AND c.`viewerelement` = '[user_id]' AND c.`usersign` = ue.`id` AND c.`viewersign` = '[cb_signint]'
Please Log in to join the conversation.