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