I need help with this SELECT :
SELECT CONCAT(
'[',
GROUP_CONCAT(JSON_OBJECT('id', h.hotel_id , 'nom', h.nom, 'estrelles', h.categoria, 'puntuacio', h.puntacio, 'tipus', h.tipus, 'descripcio', h.descripcio, 'adreca', h.adreca, 'lat', h.latitud, 'lng', h.longitud, 'web', h.web )),
']'
)
FROM hotels h ;'
Check that given a point (lat and long) give us which restaurants / hotels are available in 'X' Km round in From JSON, being able to use it in the variable places of the html index.html