join in mysql return json