         ELSE NULL::INTEGER
     END AS dw_contact_events_id,
     pl.name AS name,
-    c.code_description AS place_type,
+    pt.place_types AS place_type,
     pl.id AS place_id
 FROM
     events

    events.id,
    events.parent_id AS dw_morbidity_events_id,
    p.name,
    c.code_description AS place_type,
    prtpl.date_of_exposure,
    ad.street_number,
    ad.street_name,

    LEFT JOIN dw_entity_telephones repag_phn
        ON (repag_phn.entity_id = repagpart.secondary_entity_id)
    LEFT JOIN (
        SELECT place_id, trisano.text_join_agg(code_description, ', ') AS place_types
        FROM
            codes repagc
            JOIN places_types repag_pt
                ON (repag_pt.type_id = repagc.id)
        GROUP BY place_id 
    ) repagpt
        ON (repagpt.place_id = repagpl.id)
--    LEFT JOIN codes repagc
--        ON (repagc.id = repagpt.type_id AND repagc.deleted_at IS NULL)
    LEFT JOIN (
        SELECT
            a.event_id,
