I am trying to select categories with certain id’s and the sql query is acting really weird, take a look:
SELECT * FROM (`feeds`) WHERE `cat_id` =1 OR 2 OR 3 LIMIT 0 , 30
The result includes an item with the cat_id of 4, see this picture:
I need this to work, the script does this: a user specify’s a country, the script gets all categories with that country id, then the script has to select all feeds with those category ids. The final part is to grab posts with all the feed ids from the previous parts. This is like a news site, the feeds are rss feeds that get imported. ny help would be appreciated! I’m using codeigniter for this, by the way.

try this:
you cannot give
it should be either
or