Convert seconds into HH:MM:SS format in MySQL
https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html

see


GET_FORMAT()
SEC_TO_TIME()
TIME_FORMAT()


and possibly others.

Not knowing the datatype of your values, I can't be more specific.