Remove unix_timestamp from mysql queries (issue #4454)