Is every algebraic curve in $\mathbb{R}^2$($\mathbb{C}^2$), the set of critical points of a polynomial in $\mathbb{R}[x,y]$($\mathbb{C}[x,y]$)?
In particular what is a real (complex) polynomial whose critical set is the circle (cylinder) $x^2+y^2=1$?
Added: For the real case we have the perfect answer by Matt F. What about the complex case? Is there an algebraic complex function or even a holomorphic entire function whose critical set is the cylinder $x^2+y^2=1$?