TDI is a great motor that goes for a long time...with the proper maintenance! You need to stay on top of it for sure. Timing belt services, proper oil/change intervals, etc.
They also come at a price premium though. So for your budget, you're going to be looking at an older one/one with more mileage on it.