Syntax:
SEC_TO_TIME(seconds)

Returns the seconds argument, converted to hours, minutes, and seconds,
as a value in 'HH:MM:SS' or HHMMSS format, depending on whether the
function is used in a string or numeric context.

URL: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html

