#514 Added "group by tag_id"