The query used inside the IN() returns: 1, 2
. However the whole query returns 0 rows which is impossible since they are present. What am I doing wrong here?
SELECT DISTINCT
li.auto_id
FROM
links AS li
JOIN group_data AS gi ON
li.auto_id = gi.autoid AND li.user_id = gi.userid
WHERE
gi.groupid IN
(
SELECT
CAST( GROUP_CONCAT( gf.groupid ) AS CHAR )
FROM
group_followers AS gf
WHERE
gf.userid_ext = '1'
GROUP BY
gf.userid_ext
)
AND li.keyword LIKE '%shiba%'
Thank you so much,
Ice