I want to display a list of related blog posts and I want the list to be ordered by the number of common tags they have to the current post. Each post can have multiple tags associated to it. Here is my table structure:
[Posts] <-- [posts-to-tags-joining-table] --> [Tags]
I'm using PHP and MySQL - can I do this in one query?