J'ai trouvé un moyen de le faire :
SELECT state,GROUP_CONCAT(cast(total as char))
FROM
(
SELECT state,SUM(i.quantity) total
FROM shops s
LEFT JOIN items i ON i.shop=s.shopid
WHERE state=5
GROUP by item
) s
J'ai trouvé un moyen de le faire :
SELECT state,GROUP_CONCAT(cast(total as char))
FROM
(
SELECT state,SUM(i.quantity) total
FROM shops s
LEFT JOIN items i ON i.shop=s.shopid
WHERE state=5
GROUP by item
) s