UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'uJSlod+YbphBflJPpOXiMwSh+paO8cY7I013IE4QRs0=' 
WHERE 
  key_id = '72379626249fd891fbe6d287423ab587f08b09afebeabb0a3e65db003758db6a' 
  AND (
    token = 'uJSlod+YbphBflJPpOXiMwSh+paO8cY7I013IE4QRs0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00024