Compile a comma-separated list from a query

How to generate a comma-separated list from the following query? I assume to use a Repeat step containing a Set Value step. I don’t know how the Set Value step should be coded? Thanks.

SELECT id FROM topics WHERE forum_id=1 ORDER BY sticky DESC, last_post DESC, id DESC LIMIT 0, 30

Community Page
Last updated: