|
|
@@ -17,6 +17,4 @@ where $where$
|
|
|
and t1.siteid = $siteid$
|
|
|
and ifnull(t1.isonsale, 0) = 1
|
|
|
and ifnull(t1.sa_customschemeid,0)!=0
|
|
|
- and not exists(select 1
|
|
|
- from sa_itemgroupmx
|
|
|
- where siteid = $siteid$ and itemid = t1.itemid)
|
|
|
+ and not exists(select 1 from sa_itemgroupmx t inner join sa_itemgroup t2 on t.sa_itemgroupid=t2.sa_itemgroupid and t.siteid=t2.siteid where t.siteid = $siteid$ and t.itemid = t1.itemid)
|