I have 2 Mysql tables :
station :
logger :
Using this sql query it's showing following result :
$getStation = mysqli_query($conn, "SELECT st.st_tbl_id, st.st_name, st.st_address, st.st_lat, st.st_long, st.created,
GROUP_CONCAT(lg.lg_name) AS lg_name
FROM station AS st
LEFT JOIN logger AS lg ON lg.lg_id = st.lg_id
GROUP BY st.st_name, st.st_id, st.lg_id
ORDER BY st.st_tbl_id DESC");
Here you can see station name is duplicate value but it's should be unique one. Like for this scenario it's should be Comilla and Dhaka