UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'nmvkw1J1PPlosa7V3sQ3rK6kklla0RB1DwD+oSmHOyE=' 
WHERE 
  key_id = '0a760ff679f1e7ad7af734b9f45499f2784e06098487dc6fba26663ae2dfd270' 
  AND (
    token = 'nmvkw1J1PPlosa7V3sQ3rK6kklla0RB1DwD+oSmHOyE=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00024