UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'AbChZtqnXU6BqUNexKZvMA/aBfK91WxghSSHzus4U9o=' 
WHERE 
  key_id = '75b70c515845e7e5200d70d29b6a6b48eeca3b5b1229834e86716c0dcdd51ae4' 
  AND (
    token = 'AbChZtqnXU6BqUNexKZvMA/aBfK91WxghSSHzus4U9o=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00015