tag
tag_id tag post_id
--------------------------------
1 category1 1
2 category2 1
3 etc 2
4 category3 1
post
post_id title
-------------
1 title1
How can we get title1
because its in the tag category1
&& category2
something like
SELECT TITLE
FROM post, tag
WHERE tag.post_id = post.post_id
AND tags.tag = 'category1','category2'