UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'pZYE/lMvJgoFql0AZHZSyz9zMYgpZtP7iHYTwwR0/Lc=' 
WHERE 
  key_id = '92be586f76a1b4da3abd50eda1a05e7834b6147f68a050eb1c28e6ae322ad458' 
  AND (
    token = 'pZYE/lMvJgoFql0AZHZSyz9zMYgpZtP7iHYTwwR0/Lc=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00026