'/' アプリケーションでサーバー エラーが発生しました。

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== 0 AND   m_user.n_off == 0 GROUP BY m_user.n_id ORDER BY m_user.s_nick' at line 1

説明: 現在の Web 要求を実行中に、ハンドルされていない例外が発生しました。エラーに関する詳細および例外の発生場所については、スタック トレースを参照してください。

例外の詳細: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== 0 AND   m_user.n_off == 0 GROUP BY m_user.n_id ORDER BY m_user.s_nick' at line 1

ソース エラー:

現在の Web 要求の実行中にハンドルされていない例外が生成されました。障害の原因および発生場所に関する情報については、下の例外スタック トレースを使って確認できます。

スタック トレース:


[MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== 0 AND   m_user.n_off == 0 GROUP BY m_user.n_id ORDER BY m_user.s_nick' at line 1]
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +440
   MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) +368
   MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId) +36
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +137
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +1150
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +2072
   NT_LIB.PS.NtDb.gUser_LinkList() in D:\ULTIMATE\NT-LIB\NT-LIB.PS\NtDb_User.cs:1269
   ps.link.Page_Load(Object sender, EventArgs e) in D:\ULTIMATE\ASP\powspo_test\shop\link.aspx.cs:23
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


バージョン情報: Microsoft .NET Framework バージョン:2.0.50727.8974; ASP.NET バージョン:2.0.50727.8975