SELECT DISTINCT p.id,p.[markaID],p.[retail_store_price],p.[Categories] FROM [products] AS p WHERE (CHARINDEX(',870,', p.categories)>0 OR p.categories='870') | Timer 0: 0 ms | Timer 1: 20 ms | Timer 2: 0 ms | p.id FROM [products] AS p WHERE (CHARINDEX(',870,', p.categories)>0 OR p.categories='870')