Business & farm

I really appreciate all your help, one last question is, can I deduct all property taxes paid for 2 years up to when the house was sold or only taxes paid when the house was sold?