I asked this question before and got a great working answer.
what is the query to get "related tags" like in stack overflow
but i realized that SOF ac
SELECT t.tagName
FROM tags t INNER JOIN tagsBridge tb on t.id=tb.tagID
where tb.linkID in (
select tb.linkID from tagsBridge tb
where tb.tagID= @first_tag
intersect
select tb.linkID from tagsBridge tb
where tb.tagID= @second_tag
intersect
select tb.linkID from tagsBridge tb
where tb.tagID= @third_tag
intersect
select tb.linkID from tagsBridge tb
where tb.tagID= @fourth_tag
--- // you can continue
)
)