System.Data.SqlClient.SqlException (0x80131904): The multi-part identifier "seminar_attendees.seminarid" could not be bound.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at searchResults.GetResults(String type, Int32 id, String name, String credit, String topic, String category, String startDate, String endDate, String city, String state, String quick) in g:\pleskvhosts\paramountseminars.com\httpdocs\searchResults.aspx.cs:line 229
ClientConnectionId:80708a1b-7bae-4e0f-9a3d-1ff11f0127ff
Error Number:4104,State:1,Class:16
SELECT seminars.seminarid, MIN(topic.category) AS category, MIN(seminars.name) AS name, MIN(seminars.seminardate) AS seminardate, MIN(seminars.starttime) AS starttime, MIN(seminars.endtime) AS endtime, MIN(seminars.city) AS city, MIN(seminars.state) AS state, MIN(CONVERT(VARCHAR, attendees.aCount) + ';' + CONVERT(VARCHAR, DATEDIFF(day,GETDATE(),seminars.seminardate))) AS attendeeCount FROM credit RIGHT JOIN (faculty RIGHT JOIN (topic RIGHT JOIN ((((seminars LEFT JOIN seminar_topics ON seminars.seminarid = seminar_topics.seminarid) LEFT JOIN seminar_faculty ON seminars.seminarid = seminar_faculty.seminarid) LEFT JOIN seminar_credit ON seminars.seminarid = seminar_credit.seminarid) LEFT JOIN (SELECT seminarid, COUNT(seminarid) AS aCount FROM seminar_attendees GROUP BY seminarid) AS [attendees] ON seminars.seminarid = attendees.seminarid) ON topic.topicid = seminar_topics.topicid) ON faculty.facultyid = seminar_faculty.facultyid) ON credit.creditid = seminar_credit.creditid WHERE seminars.seminardate >= GETDATE() GROUP BY seminars.seminarid HAVING COUNT(seminar_attendees.seminarid) < 3 ORDER BY MIN(topic.category), MIN(seminars.state);