I have column likes where i store ids in a in comma separated string: 76,88
I want to select row from another table whose id is in 78,88
I tried using MYSQL IN() function but it only get first id 78
so how do i solve it in the same query string?
SELECT u.user_id,
u.username,
u.firstname,
u.lastname,u.status
FROM users u WHERE u.user_id IN(
SELECT likes FROM posts WHERE post_id='200'
)
Thank you.