Server Error in '/' Application.

'and' anahtar sözcüğü yakınındaki sözdizimi yanlış. (SELECT * FROM STK_PRFL p, STK_AYAR a where p.id = a.stk_id and stk_marka = 1 AND p.stk_a_kategori =  and a.site_onay = 'True')

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.Exception: 'and' anahtar sözcüğü yakınındaki sözdizimi yanlış. (SELECT * FROM STK_PRFL p, STK_AYAR a where p.id = a.stk_id and stk_marka = 1 AND p.stk_a_kategori =  and a.site_onay = 'True')

Source Error:


Line 94:         catch (SqlException ex)
Line 95:         {
Line 96:             throw new Exception(ex.Message + " (" + sql + ")");
Line 97:         }
Line 98:         adapter.Dispose();

Source File: d:\vhosts\akdogan.web.tr\ozyildizhidrolik.com\App_Code\Veritabani.cs    Line: 96

Stack Trace:


[Exception: 'and' anahtar sözcüğü yakınındaki sözdizimi yanlış. (SELECT * FROM STK_PRFL p, STK_AYAR a where p.id = a.stk_id and stk_marka = 1 AND p.stk_a_kategori =  and a.site_onay = 'True')]
   Veritabani.GetDataTable(String sql) in d:\vhosts\akdogan.web.tr\ozyildizhidrolik.com\App_Code\Veritabani.cs:96
   content_urunler.Page_Load(Object sender, EventArgs e) in d:\vhosts\akdogan.web.tr\ozyildizhidrolik.com\content\urunler.ascx.cs:72
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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