Incorrect syntax near 'brien'. Unclosed quotation mark after the character string ''.

RE_GetCountyByStateAndCity 'Texas', 'o'brien'System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at sqlDataHelper.ExecuteDataset(String sql) at HomeImprovement.LocationSEO.pageQueriesCheck() in d:\SEO\contractors.buyerlink.com\LocationSEO.aspx.cs:line 762System.Threading.ThreadAbortException: Thread was being aborted. at HomeImprovement.LocationSEO.pageQueriesCheck() in d:\SEO\contractors.buyerlink.com\LocationSEO.aspx.cs:line 788 at HomeImprovement.LocationSEO.Page_Load(Object sender, EventArgs e) in d:\SEO\contractors.buyerlink.com\LocationSEO.aspx.cs:line 169