I went through a similar exercise toward the end of last year.
In your price range there is lots on the market, unfortunately, from my experience, most have been neglected or abused.
Best advice I can give it to decide on what bike best suites your riding style, terrain and experience level...