Reordering the where clause in similar tags

Reordering the where clause so m.tag_id is before t.access. Should be a bit better performancewise.
Merge pull request #1041 from Bakual/patch-1

Reordering the where clause in similar tags