childsstroke: manuf
SELECT `manuf`,count(*) as `c` FROM `modx_site_content_tmc` LEFT JOIN `modx_site_content` ON `modx_site_content`.`id` = `modx_site_content_tmc`.`resource` LEFT JOIN `modx_site_content_params` ON `modx_site_content_params`.`sku`=`modx_site_content_tmc`.`sku` LEFT JOIN `modx_site_content_sklad` ON `modx_site_content_sklad`.`sku`=`modx_site_content_tmc`.`sku` WHERE `template`= 3 AND `published`=1 AND `manuf` !='' AND `modx_site_content`.`id` IN ('28','241','263902','264076','264084','264246','264247','264248','264249','264250','264251','264252','264253','264254','264255','264256','264257','264258','264259','264260','264261','264262','264263','278739','141531','141532','143930','144045','144046','149693','151644','151843','151975','153825','154411','154413','154475','154709','154840','154841','154842','156537','156538','156539','157527','158001','158078','159094','167030','168029','238425','239003','240108','240761','241794','242624','243118','243978','247362','251489','262947','263036','266339','266376','266586','266615','267176','273741','274262','275224','278933','279286','281078','282487','284601','284602','285580','285581','285582','285583','285665','285901','288028','291862','292084','294719','294993','295157','295356','297103','297686','142935','143067','149343','149344','149345','149346','149347','149348','149349','149350','149351','149352','149353','149354','149355','149356','149357','149358','149359','149360','149361','149362','149363','149364','149365','149366','149367','149368','149369','149370','149371','149372','149373','149374','149375','149376','149377','149378','149379','149380','149381','149382','149383','149384','149385','149386','149387','149388','149389','149390','149391','149392','149393','149394','149395','149396','149397','149398','149399','149400','149401','149402','149403','149404','149405','149406','149407','149408','149409','149410','149411','149412','149413','149414','149415','149416','149417','149418','149419','149420','149421','149422','149423','149424','149425','149426','149427','149428','149429','149430','149431','149432','149433','149434','149435','149436','149437','149438','149439','149440','149441','149442','149443','149444','149445','149446','149447','149448','149449','149450','149451','149452','149453','149454','149455','149456','149457','149458','149459','149460','149461','149462','149653','149705','150472','150738','150870','150895','151691','151796','153133','154412','154432','158473','159845','161692','161742','163775','163972','164024','164130','165194','166491','166851','167025','208587','208588','208589','208590','208591','208592','208593','208594','208595','208596','208597','208598','208599','208600','208601','208602','208603','208604','208605','208606','208607','208608','208609','208610','208611','208612','208613','208614','208615','208616','208617','208618','208619','208620','208621','208622','208623','208624','208625','208626','208627','208628','208629','208630','208631','208632','208633','208634','208635','208636','208637','208638','208639','208640','208641','208642','208643','208644','208645','208646','208647','208648','208649','208650','208651','208652','208653','208654','208655','208656','208657','208658','208659','208660','238215','239908','241130','241306','243506','243787','244342','244864','245459','246386','246609','247402','247441','247590','248130','248200','248588','249123','249347','251149','252085','252226','252236','253438','254612','256084','256221','262194','263705','265552','265576','265809','267113','267179','267371','267520','267643','268041','268490','268491','268493','273752','274020','274124','274305','275079','275392','275814','275815','275816','275965','276156','277218','277964','278007','278463','278979','279012','279720','280397','280725','280888','281005','281006','282062','282082','282449','283232','284161','284858','285130','285164','285535','285721','286044','286131','286446','286448','286639','286835','286880','287180','288551','289402','289437','291714','291715','291716','291717','291718','291719','291720','292318','292822','293546','294186','295355','296272','297346','297438','297791','297894','297895','299119','299120','299197','299251','299360','299506','299820','299938','300702','301016','303848','141359','141397','141398','141399','141400','141401','141402','141403','141404','141405','141406','141407','141470','141471','141472','141473','141474','141523','141541','141542','141580','141589','141590','141625','141627','141629','141639','141640','141642','141695','141710','141768','141769','141770','141771','141772','141792','141872','141873','141959','141999','142017','142020','142052','142070','142071','142072','142088','142093','142149','142151','142158','142159','142160','142172','142232','142233','142667','142668','142690','142699','142700','142718','142776','142777','142778','142779','142780','142781','142782','142783','142858','142985','143219','143390','143501','143559','143598','143620','143788','144055','144077','144082','144120','144216','144217','144951','144994','144995','144996','144997','144998','144999','145017','147094','147229','147231','147732','147733','147893','148584','148593','149617','149661','149662','149701','150446','150697','150705','150706','150802','150835','150866','151028','151039','151040','151041','151276','151285','151404','151414','151415','151427','151432','151613','151692','151758','151813','151840','151844','151848','151851','152507','152638','153073','153104','153110','153111','153112','153113','153147','153226','153227','153228','153229','153230','153324','153334','153457','153458','153460','153461','153467','153578','153651','153652','153813','153921','153951','154248','154254','154331','154476','154477','154478','154479','154480','154591','154683','154685','154686','154702','154705','154706','154710','154735','154745','154748','154763','154764','154765','154817','154818','154819','154843','154844','154845','155073','156523','156524','156525','156526','156527','156528','156529','156530','156531','156532','156533','156534','156535','156536','158002','158013','158020','158125','158126','158160','158228','158393','158425','158426','158439','158516','158545','158546','158737','158847','158848','159008','159021','159187','159193','159194','159313','159335','159437','159549','159672','159704','159934','160005','160018','160253','160435','160492','160531','160541','160632','160643','160747','160828','161010','161068','161189','161268','161305','161358','161382','161446','161466','161512','161527','161555','161667','161746','161995','162011','162061','162130','162147','162148','162193','162263','162361','162438','162584','162602','162706','162784','162801','162831','162995','163003','163054','163088','163098','163255','163256','163283','163284','163311','163438','163490','163704','164769','164833','164916','164947','164982','164991','164993','165028','165067','165227','165242','165418','165536','165562','165646','165724','165857','165905','165932','166032','166163','166339','166408','166436','166544','166615','166617','166680','166834','166969','167069','167283','167300','167301','167319','167361','167470','167471','167510','167565','167677','167747','167823','167824','168007','168010','168107','168109','168149','168201','168202','169157','215990','216044','232745','238007','238093','238145','238281','238393','238423','238439','238470','238607','238719','238720','238892','238964','238965','239021','239022','239119','239197','239257','239258','239260','239261','239309','239371','239372','239486','239547','239548','239549','239550','239639','239651','239760','239843','239845','239846','239861','239886','239968','239973','239977','239978','239979','239980','239981','239989','240045','240242','240321','240345','240399','240429','240467','240618','240734','240760','240892','241032','241298','241301','241363','241397','241482','241492','241507','241578','241743','241785','241815','241906','241907','241908','241909','241910','242063','242287','242399','242427','242569','242580','242593','242622','242623','242829','242916','242931','242933','243007','243304','243453','243486','243488','243508','243605','243606','243607','243735','243746','243816','243843','243851','243896','243898','243976','243977','244000','244131','244132','244143','244173','244253','244333','244380','244462','244542','244624','244693','244721','244773','244816','244854','244957','244986','245024','245033','245116','245121','245339','245447','245537','245655','245660','245731','245872','245883','245903','245933','245963','246014','246027','246036','246130','246258','246297','246302','246306','246307','246441','246464','246518','246566','246693','246700','246952','246955','247156','247194','247271','247272','247466','247623','247643','247779','247804','247805','247818','247914','248025','248190','248192','248214','248229','248322','248330','248333','248343','248589','248663','248680','248820','248868','248923','248959','248964','249060','249118','249125','249232','249235','249276','249310','249312','249323','249343','249404','249432','249494','249500','249595','249672','249717','249739','249990','250163','250220','250284','250587','250614','250619','250716','250998','251186','251187','251223','251239','251377','251384','251398','251608','251678','251684','251686','251687','251698','251699','251703','251720','251723','251740','251761','251818','253265','253306','253436','253476','253556','253559','253577','253681','253693','253706','253710','253786','253847','253848','253857','253858','254393','254453','254536','254568','254631','254884','255105','255215','255319','255346','255419','255437','255463','255472','255591','255631','255650','255676','256077','256191','256243','256551','256555','256587','256659','256781','256911','256961','257037','257084','257108','257156','257157','261738','262029','262042','262118','262121','262231','262232','262233','262234','262235','262236','262237','262238','262239','262240','262250','262505','262511','262578','262645','262655','262723','263175','263518','263548','263601','263766','263767','263768','263769','263770','263771','263772','263773','263774','263775','263776','263777','263778','263779','263780','263781','263782','263783','263784','263785','263786','263787','263788','263789','263790','263791','263792','263793','263794','263795','263796','263797','263798','263799','263800','263801','263802','263803','263804','263805','263806','263807','263808','263809','263810','263811','263812','263813','263814','263815','263816','263817','263818','263819','263820','263821','263822','263823','263824','263825','263826','263827','263828','263829','263830','263831','263832','263833','263834','263835','263836','263837','263838','263839','263840','263841','263842','263843','263844','263845','263846','263847','263848','263849','263850','263851','263852','263853','263854','263855','263856','263857','263858','263859','263860','263861','263862','263863','263864','263865','263866','263867','263868','263869','263870','263871','263872','263873','263874','263875','263876','263877','263878','263879','263880','263881','263882','263883','263884','263885','263886','263887','263888','263889','263890','263891','263892','263893','263894','263895','263896','263897','263898','263899','263900','263901','263903','263904','263905','263906','263907','263908','263909','263910','263911','263912','263913','263914','263915','263916','263917','263918','263919','263920','263921','263922','263923','263924','263925','263926','263927','263928','263929','263930','263931','263932','263933','263934','263935','263936','263937','263938','263939','263940','263941','263942','263943','263944','263945','263946','263947','263948','263949','263950','263951','263952','263953','263954','263955','263956','263957','263958','263959','263960','263961','263962','263963','263964','263965','263966','263967','263968','263969','263970','263971','263972','263973','263974','263975','263976','263977','263978','263979','263980','263981','263982','263983','263984','263985','263986','263987','263988','263989','263990','263991','263992','263993','263994','263995','263996','263997','263998','263999','264000','264001','264002','264003','264004','264005','264006','264007','264008','264009','264010','264011','264012','264013','264014','264015','264016','264017','264018','264019','264020','264021','264022','264023','264024','264025','264026','264027','264028','264029','264030','264031','264032','264033','264034','264035','264036','264037','264038','264040','264041','264042','264043','264044','264045','264046','264047','264048','264049','264050','264051','264052','264054','264055','264056','264057','264058','264059','264060','264061','264062','264063','264064','264065','264066','264067','264068','264069','264070','264071','264072','264073','264074','264075','264077','264078','264079','264080','264081','264082','264083','264085','264086','264087','264088','264089','264090','264091','264092','264093','264094','264095','264096','264097','264098','264099','264100','264101','264102','264103','264104','264105','264106','264107','264108','264109','264110','264111','264112','264113','264114','264115','264116','264117','264118','264119','264120','264121','264122','264123','264124','264125','264126','264127','264128','264129','264130','264131','264132','264133','264134','264135','264136','264137','264138','264139','264140','264141','264142','264143','264144','264145','264146','264147','264148','264149','264150','264151','264152','264153','264154','264155','264156','264157','264158','264159','264160','264161','264162','264163','264164','264165','264166','264167','264168','264169','264170','264171','264172','264173','264174','264175','264176','264177','264178','264179','264180','264181','264182','264183','264184','264185','264186','264187','264188','264189','264190','264191','264192','264193','264194','264195','264196','264197','264198','264199','264200','264201','264202','264203','264204','264205','264206','264207','264208','264209','264210','264211','264212','264213','264214','264215','264216','264217','264218','264219','264220','264221','264222','264223','264224','264225','264226','264227','264228','264229','264230','264231','264232','264233','264234','264235','264236','264237','264238','264239','264240','264241','264242','264243','264244','264245','264264','264265','264266','264267','264268','264269','264270','264271','264272','264273','264274','264275','264276','264277','264278','264279','264280','264281','264282','264283','264284','264285','264286','264287','264288','264289','264290','264291','264292','264293','264294','264295','264296','264297','264298','264299','264300','264301','264302','264303','264304','264305','264306','264307','264308','264309','264310','264311','264312','264313','264314','264315','264316','264317','264318','264319','264320','264321','264322','264323','264324','264325','264326','264327','264328','264329','264330','264331','264332','264333','264334','264335','264336','264337','264338','264339','264340','264341','264342','264343','264344','264345','264346','264347','264397','264482','264697','264786','264810','265134','265141','265165','265266','265514','265594','265627','265901','265907','265991','266030','266033','266034','266083','266117','266311','266312','266366','266369','266462','266479','266482','266569','266585','266597','266693','266786','266957','267043','267475','267499','267652','267832','267833','267955','268248','268261','268360','268362','268757','268787','268860','269055','269082','269194','269220','269238','269350','269355','269501','269567','273481','273515','273547','273550','273643','273700','273792','273863','273864','274076','274078','274468','274469','274470','274471','274472','274473','274474','274475','274759','275119','275237','275246','275301','275538','275737','275782','275794','275846','275972','276004','276050','276088','276436','276563','276619','276659','277013','277067','277212','277371','277427','277496','277497','277499','277681','277684','277690','277702','277714','277735','277793','277816','277834','277911','277912','277913','277914','277943','278060','278149','278150','278155','278205','278243','278415','278493','278607','278644','278646','278777','278801','278890','278934','278935','279060','279158','279175','279285','279337','279339','279409','279441','279442','279490','279591','279593','279601','279642','279663','279714','280321','280388','280447','280513','280524','280540','280541','280542','280820','280840','280846','280942','280961','280965','281032','281191','281198','281217','281589','281769','281778','281779','281864','282088','282374','282806','282904','282936','283040','283057','283107','283381','283478','283511','283668','283669','283697','284135','284156','284163','284297','284403','284574','284744','284867','284879','285050','285095','285100','285117','285142','285416','285661','285695','285717','285741','285778','285780','285781','285782','285828','285844','285907','285933','285978','286018','286135','286188','286249','286416','286451','286597','286606','286919','287096','287129','287132','287133','287388','287535','287553','287795','287796','287997','288032','288098','288318','288319','288320','288321','288322','288323','288324','288325','288326','288341','288342','288343','288344','288363','288364','288366','288398','288433','288539','288570','288754','289321','289322','289323','289324','289325','289326','289327','289328','289329','289440','289504','291583','291672','291699','291702','291765','291826','291847','291861','291973','292009','292050','292243','292248','292352','292355','292400','292415','292544','292545','292546','292547','292548','292549','292552','292700','292733','292810','292857','293468','293548','294005','294179','294183','294249','294394','294486','294501','294607','294617','294642','294643','294686','294720','294721','294819','294889','294985','295278','295400','295453','295593','295768','295834','295837','295854','295966','297277','297297','297301','297527','297850','297976','298061','298088','298196','298480','299055','299077','299115','299171','299278','299282','299385','299545','299563','299573','299612','299701','299702','299719','299868','299884','299932','299977','300009','300065','300183','300221','300277','300613','301920','302084','302219','302279','303905') GROUP BY `manuf` ORDER BY `manuf` ASC
childsstroke1: manuf
SELECT `manuf`,count(*) as `c` FROM `modx_site_content_tmc` LEFT JOIN `modx_site_content` ON `modx_site_content`.`id` = `modx_site_content_tmc`.`resource` LEFT JOIN `modx_site_content_params` ON `modx_site_content_params`.`sku`=`modx_site_content_tmc`.`sku` LEFT JOIN `modx_site_content_sklad` ON `modx_site_content_sklad`.`sku`=`modx_site_content_tmc`.`sku` WHERE `template`= 3 AND `published`=1 AND `manuf` !='' AND `modx_site_content`.`id` IN ('') GROUP BY `manuf` ORDER BY `manuf` ASC