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

Query time 0.00031