UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '4+VWB+eymfBT/LqqntHVuaJ9nj2/5Ltv9UZ53H74YH0=' 
WHERE 
  key_id = 'fe15151b37b8e0e9455d3a44f5ffd4395287fda953463b5e391ac71f77e0e656' 
  AND (
    token = '4+VWB+eymfBT/LqqntHVuaJ9nj2/5Ltv9UZ53H74YH0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00031