I have a table with usernames and categories and I have the query:
select * from articles where username='333' or username='222' and category='movies'
I want this to return just the records from the users ‘333’ and ‘222’ which are from the ‘movies’ category, but this returns all the articles from those users from all the categories.
What am I doing wrong?
1 Answer