For D somewhere between -11 and -12 (I think!), the following function produces a graph with a closed curve and two singular points.
$$ y^4-4y^2=-x^4+3x^3+3x^2+Dx-3 $$
I plotted a 2D graph, animated for various values of D. The two singular point can be thought of as local peaks in the 3D space (x, y, D).
What is the exact value of D when this occurs?
After correction of the typo, the singular points are shown on the joints graphs.
Figure 3 shows the case of isolated singular points.