delete from dcms_login_info where user_id='$id' AND MIN(UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(login_time))