first of all, i have a query like this:
SELECT * FROM post WHERE category_ids IN (24,36,50,60,12);
- category_ids column have data like this: 16,24,18
now, i want to search in multi values column with multi value string. this query have a problem. fetch rows with just id (24). and cant search with 36,50,60,12
in other word, i have two table : 1. category 2. post . so i selected multi category for a post and save the category ids in post table like this (ex: 12,24,16) now i want fetch all post that have category id 24 AND 36 for example
how can i write my query to work? please help! Thanks