Say we have a table
table posts +---------+-----------+--------------------------------+ | postId | title | status | bodyText | +--------
If you use MySQL then you can use GROUP_CONCAT:
SELECT status, GROUP_CONCAT(title) FROM posts GROUP BY status