You can create a new field in your table named "tags" and when you search on your site split the tags (lets say all the tags for each topic is separated by a ',') using split function in PHP with the character you used (in our case, comma (',')).
make a loop for each array of tags for each topic (nested loops) and search for a tag that is the same as you have searched.
hope i helped :)