Назад

Дилеры и дистрибьютеры (регионы)

    select a.Subdivision_ID, a.Subdivision_Name, a.Hidden_URL, a.ExternalURL, a.descr, SUBSTRING_INDEX(a.img,':',-1) as img, b.Sub_Class_ID, b.Class_ID from Subdivision as a, Sub_Class as b where a.Parent_Sub_ID = '43833' AND a.Subdivision_ID = b.Subdivision_ID AND a.Checked=1 AND (b.Class_ID=182 OR b.Class_ID=2001 OR b.Class_ID=2003 OR b.Class_ID=2009 OR b.Class_ID=2010 OR b.Class_ID=2021 OR b.Class_ID=2012 OR b.Class_ID=244 OR b.Class_ID=2020 OR b.Class_ID=2030 OR b.Class_ID=2073) AND (a.citytarget LIKE '%,0,%' OR a.citytarget = ',,' OR a.citytarget IS NULL OR a.citytarget = '') order by a.Priority GROUP BY a.Subdivision_ID
  • Array ( [43835] => 1 )
    Уральский Федеральный округ
  • Array ( [43835] => 1 [43836] => 1 )
    Москва и Московская область
  • Array ( [43835] => 1 [43836] => 1 [43837] => 1 )
    Нижегородская область
  • Array ( [43835] => 1 [43836] => 1 [43837] => 1 [43902] => 1 )
    Ленинградская область