mariadb seleccione varias filas en una columna
SELECT
GROUP_CONCAT(DISTINCT id SEPARATOR ', ') AS 'ids'
FROM
table_name
WHERE
column_name = 'value'
MatrixZA
SELECT
GROUP_CONCAT(DISTINCT id SEPARATOR ', ') AS 'ids'
FROM
table_name
WHERE
column_name = 'value'