UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'PV/2FPzlMOsGM19p+grzzlrnX/dM8s136ZRzPr3BzKo=' 
WHERE 
  key_id = 'ae86e88775b0d2c2c3da6d2d40fad090a8c4b511da4d6ce9938095ae2238dabf' 
  AND (
    token = 'PV/2FPzlMOsGM19p+grzzlrnX/dM8s136ZRzPr3BzKo=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00016