UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'Vq36JAYbwIeFmfOl/qk8uG5J7lEAiuO2OK9oWof9DkI=' 
WHERE 
  key_id = 'e8b79e40723aa73cefa70c28620f3c0ce0151c2611e334dc748ecf2d84f58792' 
  AND (
    token = 'Vq36JAYbwIeFmfOl/qk8uG5J7lEAiuO2OK9oWof9DkI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00023