lader til, at problemet er forårsaget af gruppe af som summedTags
er forekomsterne af id_data
SELECT
id_data,
sum(if (id_tag=75,1,0)) as tag1,
sum(if (id_tag=12,1,0)) as tag2,
sum(if (id_tag in(12,75),1,0)) as summedTags
FROM tags_inservice
WHERE id_service = 1
GROUP BY id_data
ORDER BY summedTags DESC;