I'm trying to figure out why i cannot run a multiple AND conditions in mysql query.
basically this is my code:
SELECT id, category_name, url, category_name_unedit FROM mytable WHERE category_name='Girls Clothes' AND category_name='Boys Clothes' GROUP BY category_name
the code above doesn't return anything but when I run the code individually like this:
SELECT id, category_name, url, category_name_unedit FROM mytable WHERE category_name='Girls Clothes' GROUP BY category_name
or like this:
SELECT id, category_name, url, category_name_unedit FROM mytable WHERE category_name='Boys Clothes' GROUP BY category_name
then it works fine!
This is such a basic issue and unfortunately i cannot figure out how to resolve it.
could someone please advise on this issue?