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