How to put JSON into a column data if sub-query returns more than 1 row in MySQL How to put JSON into a column data if sub-query returns more than 1 row in MySQL database database