UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'Q8PKkp0kDe8gbhxvNMD/xcDG2YOvqnR6+HtDwf72328=' 
WHERE 
  key_id = '7575da26a7fddc536b3ab769e1c27da10edfcbf2e62d60cfccc730a5f4c76876' 
  AND (
    token = 'Q8PKkp0kDe8gbhxvNMD/xcDG2YOvqnR6+HtDwf72328=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00021