Original query:

SELECT a.*, STRING_AGG(DISTINCT m."name", ',')
  FROM "MasterCombineSkills" a
  LEFT JOIN "MasterItems" m ON m.id IN (SELECT e::int FROM jsonb_array_elements_text(a."itemIds") a(e))
 WHERE a.id = 204000
 GROUP BY a.id;