title: Unable to execute query - Error: Incorrect syntax near 'Media'
body: <p>This code is showing an error:</p>
  
  <blockquote>
    <p>Incorrect syntax near 'Media'.</p>
  </blockquote>
  
  <p>What does it mean? Where am I making a mistake?</p>
  
  <pre><code>if (!IsPostBack)
  {
      if (Request.QueryString["sub"] != null)
      {
          SqlDataAdapter da = new SqlDataAdapter(
              "select * from entry_table Where sub=" + Request.QueryString["sub"],
              ConfigurationManager.ConnectionStrings["cozmotestConnectionString"].ConnectionString);
  
          DataTable dt = new DataTable();
          da.Fill(dt);
  
          if (dt.Rows.Count &gt; 0)
          {
              Label1.Text = dt.Rows[0]["sub"].ToString();
              Label2.Text = dt.Rows[0]["body"].ToString();
          }
      }
  }
  
  &lt;div style=" padding-bottom:10px"&gt;&lt;h1&gt;&lt;asp:Label Font-Bold="true" ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;&lt;/h1&gt;&lt;/div&gt;
  
  &lt;div&gt;&lt;asp:Label ID="Label2" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;&lt;/div&gt;
  </code></pre>