The tags field consists of integers representing the id of the tags table, ie 1-2-5-6- = to the id of the tag for example.
All I'm really trying to do is prevent tags from showing up if nothing is associated with it. Pointless having the user click on a tag only be told there is no associated data for that tag.
Anyway, that query is not working for some odd reason. I'm starting to think its not doable.
TAG TABLE
ID TAG HITS
1, 'Kitchens', 0
2, 'Cupboards', 0
3, 'Cabins', 0
4, 'Huts', 0
5, 'Sheds', 0
6, 'Flooring', 0
7, 'Tiles', 0
SEARCH TABLE
ID DETALS TAGS
1, 6, '1-2-9-'
2, 8, '3-4-5-'
3, 4, '6-7-'
4, 2, '1-2-'
5, 1, '21-17-'