Сотрудники

    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 = '107183' 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 ( [118804] => 1 )
    Бух
  • Array ( [118804] => 1 [118806] => 1 )
    Методисты
  • Array ( [118804] => 1 [118806] => 1 [118807] => 1 )
    Юристы
  • Array ( [118804] => 1 [118806] => 1 [118807] => 1 [118808] => 1 )
    Инженеры
  • Array ( [118804] => 1 [118806] => 1 [118807] => 1 [118808] => 1 [118809] => 1 )
    Начальники дол