Please Log in to join the conversation.
SELECT COUNT(*)
FROM `#__comprofiler_plugin_activity_comments` AS c
WHERE c.`user_id` = USER_ID_HERE
AND c.`asset` IN ( SELECT CONCAT( 'activity.', a.`id` ) FROM `#__comprofiler_plugin_activity` AS a WHERE a.`asset` = 'ASSET_HERE' )
SELECT COUNT(*)
FROM `#__comprofiler_plugin_activity_comments` AS c
INNER JOIN `#__comprofiler_plugin_activity` AS a
ON a.`id` = SUBSTRING( c.`asset`, 10 )
AND a.`asset` = 'ASSET_HERE'
WHERE c.`user_id` = USER_ID_HERE
AND c.`asset` LIKE 'activity.%'
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.