SELECT `t`.`id_thing`, `t`.`data`, JSON_ARRAYAGG(`n`.`note`) AS `all_notes`
FROM `things` AS `t`
LEFT JOIN `notes` AS `n` ON `n`.`id_thing` = `t`.`id_thing`
GROUP BY `t`.`id_thing`, `t`.`data`
...
--><img src="/image66" alt=""><!--
--><img src="/image67" alt=""><!--
...