here i have 2 table in database like this,
1)videos
id name
200119 one
200120 two
200121 three
2)sessions_to_channels
channel_id playlist_id videos
50 359 200119,200120,200121
I want to select all the videos.name from videos table where videos.id IN sessions_to_channels.videos.
For that i am using this query,
SELECT v.name FROM videos as v WHERE v.id in ( select videos from sessions_to_channels where playlist_id=359 and channel_id=50 )
But it return me only 1 record
id name
200119 one
I am doing anything wrong here?