'alfresco_alfresco.n.tab_id' isn't in GROUP BY