I have a table structure as attached in MySQL Database.
The problem is for id=1, I have tags like AI,BOTS in tag column. So when I query with id=1, I need to fetch all the rows which contain either AI or BOTS. So the output will be rows with id=1, id=3 and id=4. Similarly, if i query with id=4, I should get rows 1 and 4.
I tried query
Select * From news where tags in (select tags from news where id=1);
but it didnt help. I don`t have much expertise in writing too complex database queries, any help would be appreciated.