At 15,000 km, the bike is nowhere near the end of its life, so I wouldn't stress too much about that. What really matters is what you're paying for it - if used ones have gotten more expensive lately, it can get tight between a used one in good condition and a new or newer 390. Look at the specific listing: service history, accident-free status, overall condition. A KTM easily handles 50,000+ km if it's been properly maintained.
Where I see things differently from the previous answer: the year does matter, but more because of the electronics and braking system. Newer models sometimes have better ABS systems and fewer beginner traps. If used prices have gone up so much that the difference to a new one is just a couple hundred euros, honestly I'd go for the new one - you still get the warranty and know exactly what you're getting.
Bottom line: the 390 Duke is a solid choice for getting started, but don't let the "everyone recommends it" pressure you. Check out other beginner-class models too. And don't forget to test ride - how the bike feels and whether you're comfortable sitting on it matters just as much for a beginner as the technical specs.