I understand the confusion here, however. You have your books to the extent that you bought them, obtained them, or brought them with you. They are, in fact, yours to possess, but you are not in possession of them now because you lost them. Therefore, the second sentence is correct. You had them, but now you don't.
Student or Learner