Назад

Гардеробные

    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 = '117140' 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 ( [117146] => 1 )
    Гардеробная 1
  • Array ( [117146] => 1 [117142] => 1 )
    Гардеробная 2
  • Array ( [117146] => 1 [117142] => 1 [117143] => 1 )
    Гардеробная 3
  • Array ( [117146] => 1 [117142] => 1 [117143] => 1 [117144] => 1 )
    Гардеробная 4
  • Array ( [117146] => 1 [117142] => 1 [117143] => 1 [117144] => 1 [117145] => 1 )
    Гардеробная 5