title: Conversion failed when converting the varchar "x" value to data type int SQL
body: <p>I have this query : </p>
  
  <pre><code>SELECT * 
    FROM STUDENTS 
   WHERE STUDENT_ID NOT IN 
         (SELECT STD_VALUE 
            FROM PROVIDERS_STD 
           WHERE STD_TYPE = 'STUDENT')
  </code></pre>
  
  <p>I have the following error :</p>
  
  <blockquote>
    <p>Conversion failed when converting the varchar "x" value to data type
    int.</p>
  </blockquote>
  
  <p>The error isn't always shown and on the same computers. I mention this query is used in ASP.NET Webforms C# project.</p>
  
  <p>parametrize</p>