UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'krILdNTCoRdNvxknd2ll4DhRZLtaKSmo/f5j169Nzk4=' 
WHERE 
  key_id = 'c70c3e499b6534afe73cc94c8802546aa37e8f33b8deb94f3cdc0dca2e0954eb' 
  AND (
    token = 'krILdNTCoRdNvxknd2ll4DhRZLtaKSmo/f5j169Nzk4=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00032