UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '+1/cEnMvbgnBU4iHiD3a/UJ0v8LYpSHBlKH1oqzAlQA=' 
WHERE 
  key_id = '91e222b2294e48b32b49e2f78b6671d9d84e2e641f2328a4c6ffacba3038694f' 
  AND (
    token = '+1/cEnMvbgnBU4iHiD3a/UJ0v8LYpSHBlKH1oqzAlQA=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00060