$query = "SELECT posts.*
FROM map, posts, tags
WHERE map.tag_id = tags.id
AND (tags.name IN ('mysql', 'database'))
AND map.post_id = posts.id
GROUP BY posts.id
HAVING COUNT( posts.id ) = 2";
I don't understand the last row. Can someone please explain it for me? What is the difference if I don't have it there?