Least-energy Solutions to a Non-autonomous Semilinear Problem