Si usa MySQL, puede usar GROUP_CONCAT : SELECT status, GROUP_CONCAT(title) FROM posts GROUP BY status