THis is the line that's breaking it.  Remove the SQL and the space and the page will render.