UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'mGbAT1++GxEi/FDVXDySboSeEICJ9ZWfHUAeeSX113Y=' 
WHERE 
  key_id = '081a4c39484bfc5855c22d08f61962454315fe6f26f570807982b98c59319c96' 
  AND (
    token = 'mGbAT1++GxEi/FDVXDySboSeEICJ9ZWfHUAeeSX113Y=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00020