The above link should direct you to an answer.
As for what your options are, the current buyer should ask the tenant to complete a Tenant Estople Statement. That will give them what your understanding of your lease term, security, etc. Also, the current buyer should have requested a copy of your lease. If you are on month-to-month. It would be advisable for you and the new owner to enter into a new lease.