I think the `attachable_type` group by is redundant after the `where` clause.