added GROUP_CONCAT() function to mysql select query to merge rows into a single row.