Replace TIMEDIFF with TIMESTAMPDIFF for mysql.