UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'rxaTmbu5venNZWyC7IrRc0q8kNlgI87vFu7Ev3wCyU0=' 
WHERE 
  key_id = 'e23f249d1f9f708c00b5fa1e8a9d42cbcf52aa2f0a57310c89d777bfaaf589a5' 
  AND (
    token = 'rxaTmbu5venNZWyC7IrRc0q8kNlgI87vFu7Ev3wCyU0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00019