Server Error in '/' Application.

There was a problem getting a list of celebrityHeights Incorrect syntax near 'Amico'.
Unclosed quotation mark after the character string ' ORDER BY searches desc'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ApplicationException: There was a problem getting a list of celebrityHeights Incorrect syntax near 'Amico'.
Unclosed quotation mark after the character string ' ORDER BY searches desc'.

Source Error:


Line 564:        catch (SqlException ex)
Line 565:        {
Line 566:            throw new ApplicationException("There was a problem getting a list of celebrityHeights " + ex.Message);
Line 567:        }
Line 568:    }

Source File: C:\Websites\MrHeightProject\MrHeightProject\App_Code\database.cs    Line: 566

Stack Trace:


[ApplicationException: There was a problem getting a list of celebrityHeights Incorrect syntax near 'Amico'.
Unclosed quotation mark after the character string ' ORDER BY searches desc'.]
   database.similarHeight(String height, String name) in C:\Websites\MrHeightProject\MrHeightProject\App_Code\database.cs:566
   celebrity.Page_Load(Object sender, EventArgs e) in C:\Websites\MrHeightProject\MrHeightProject\celebrity.aspx.cs:442
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0