Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
SELECT u.`id`
FROM `#__groupjive_users` AS u
INNER JOIN `#__groupjive_groups` AS g
ON g.`id` = u.`group`
INNER JOIN `#__groupjive_categories` AS c
ON c.`id` = g.`category`
WHERE u.`user_id` = '[user_id]'
AND c.`id` = CATEGORY_ID_HERE
$variables['var1']->setError( 'You have already joined a group in this category.' );
Please Log in to join the conversation.