Forum Moderators: open
Smth like this:
SELECT
(
SELECT GROUP_CONCAT(column_name)
FROM table1
WHERE id IN ('1', '2')
)
FROM table2
Of course subquery returns whats expected "column1, column1", but the root query does not understand this string as a SELECT expression. Maybe there is some sort of EVAL function? to try to help query to understand the string as a portion of query?
Thanks!