I need some help with a more complex query. So let\'s say we have a table tags which contains id, value, category and we have
tags
id
value
category