title: Conversion failed when converting the varchar value '1,' to data type int
body: <p>I have table categories (c) and an another table (x) with a column which can contain cat IDs separated with comma as varchar data type. I want to Select related categories but I'm having error "Conversion failed when converting the varchar value '5,' to data type int." when trying to select:</p>
  
  <pre><code>SELECT ID, Title FROM c WHERE ID IN (SELECT catIDs FROM x WHERE ID=any);
  </code></pre>
  
  <p>The subquery returns data like "1,3,4"</p>