UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'bjCVVlPnuo3iMAScOxcNPSY8es+fgBb/2oP10h7CBaQ=' 
WHERE 
  key_id = 'cf53ed0713357a8da3d748fa8dc37b2cef6dd8493c3b33538df997cb7494cb63' 
  AND (
    token = 'bjCVVlPnuo3iMAScOxcNPSY8es+fgBb/2oP10h7CBaQ=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00019