UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '73eBSbP/LafyUBK4oj7TBpitPxv7Hf9GZjFOsNJmYlk=' 
WHERE 
  key_id = '37e359b4235fdfe61d36203734ba777e1fa443123a008e62ab47f50c48153cf5' 
  AND (
    token = '73eBSbP/LafyUBK4oj7TBpitPxv7Hf9GZjFOsNJmYlk=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00025