UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '+cM3mwalAYBm8wCnNsg1IY5r8c+H/GefHgkhu7QyHaI=' 
WHERE 
  key_id = '60e30162c828a952e657ade2801f26c630e2131353713929a235f2d08dba18e0' 
  AND (
    token = '+cM3mwalAYBm8wCnNsg1IY5r8c+H/GefHgkhu7QyHaI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00025