SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002194s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000495s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002389s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.79' ) [ RunTime:0.000327s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001849s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000525s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 21 LIMIT 1 [ RunTime:0.000972s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 21 [ RunTime:0.000745s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131) [ RunTime:0.000503s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002618s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131) ) AND `u`.`lockUser` = '0' [ RunTime:0.005014s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.011699s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND `s`.`id` IN ('16237','16231','16149','16127','16013','15830','15743','15635','15585','15567','15549','15498','15437','15422','15330','15323','15287','15195','15142') ORDER BY FIELD(s.id, 16237,16231,16149,16127,16013,15830,15743,15635,15585,15567,15549,15498,15437,15422,15330,15323,15287,15195,15142) [ RunTime:0.018750s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002144s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16237 LIMIT 4 [ RunTime:0.001291s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002105s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16237 ORDER BY `minOrder` ASC [ RunTime:0.003324s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003234s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16237 ORDER BY `unit` DESC [ RunTime:0.004211s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001959s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16237 LIMIT 2 [ RunTime:0.012229s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16237 ORDER BY `minOrder` ASC [ RunTime:0.001589s ]
select * from pdf where partno='724' and brandshort='SCS' limit 1 [ RunTime:0.004260s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002992s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '724' OR `brand` LIKE 'SCS%' ) ) LIMIT 1 [ RunTime:0.009069s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16231 LIMIT 4 [ RunTime:0.004355s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16231 ORDER BY `minOrder` ASC [ RunTime:0.008610s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16231 ORDER BY `unit` DESC [ RunTime:0.006590s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16231 LIMIT 2 [ RunTime:0.000631s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16231 ORDER BY `minOrder` ASC [ RunTime:0.000400s ]
select * from pdf where partno='BAT54WS-E3-08' and brandshort='VISHAY' limit 1 [ RunTime:0.004495s ]
select foldpath,foldpath2,filename from pdf_file where id=1916027 limit 1 [ RunTime:0.002267s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54WS-E3-08' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.022226s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16149 LIMIT 4 [ RunTime:0.022411s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16149 ORDER BY `minOrder` ASC [ RunTime:0.008150s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16149 ORDER BY `unit` DESC [ RunTime:0.002928s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16149 LIMIT 2 [ RunTime:0.016324s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16149 ORDER BY `minOrder` ASC [ RunTime:0.019643s ]
select * from pdf where partno='STPS160U' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.013572s ]
select foldpath,foldpath2,filename from pdf_file where id=419620 limit 1 [ RunTime:0.002245s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'STPS160U' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.004473s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16127 LIMIT 4 [ RunTime:0.008743s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16127 ORDER BY `minOrder` ASC [ RunTime:0.010121s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16127 ORDER BY `unit` DESC [ RunTime:0.005030s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16127 LIMIT 2 [ RunTime:0.017273s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16127 ORDER BY `minOrder` ASC [ RunTime:0.004627s ]
select * from pdf where partno='L-1384AD/1GD' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.005574s ]
select foldpath,foldpath2,filename from pdf_file where id=1387251 limit 1 [ RunTime:0.013420s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L-1384AD/1GD' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.022911s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16013 LIMIT 4 [ RunTime:0.003455s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16013 ORDER BY `minOrder` ASC [ RunTime:0.008442s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16013 ORDER BY `unit` DESC [ RunTime:0.009254s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16013 LIMIT 2 [ RunTime:0.031069s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16013 ORDER BY `minOrder` ASC [ RunTime:0.027483s ]
select * from pdf where partno='L-130WDT/1EGW' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.011169s ]
select foldpath,foldpath2,filename from pdf_file where id=1387246 limit 1 [ RunTime:0.024205s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L-130WDT/1EGW' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.006593s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15830 LIMIT 4 [ RunTime:0.003689s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15830 ORDER BY `minOrder` ASC [ RunTime:0.001755s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15830 ORDER BY `unit` DESC [ RunTime:0.003745s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15830 LIMIT 2 [ RunTime:0.007976s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15830 ORDER BY `minOrder` ASC [ RunTime:0.013202s ]
select * from pdf where partno='BAT48' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.002383s ]
select foldpath,foldpath2,filename from pdf_file where id=397613 limit 1 [ RunTime:0.000477s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT48' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000999s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15743 LIMIT 4 [ RunTime:0.002140s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15743 ORDER BY `minOrder` ASC [ RunTime:0.000701s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15743 ORDER BY `unit` DESC [ RunTime:0.002771s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15743 LIMIT 2 [ RunTime:0.003235s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15743 ORDER BY `minOrder` ASC [ RunTime:0.000747s ]
select * from pdf where partno='BAW56LT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.013050s ]
select foldpath,foldpath2,filename from pdf_file where id=568830 limit 1 [ RunTime:0.002133s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAW56LT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.000507s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15635 LIMIT 4 [ RunTime:0.001098s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15635 ORDER BY `minOrder` ASC [ RunTime:0.000590s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15635 ORDER BY `unit` DESC [ RunTime:0.002656s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15635 LIMIT 2 [ RunTime:0.015628s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15635 ORDER BY `minOrder` ASC [ RunTime:0.011112s ]
select * from pdf where partno='KPT-2012LVSECK-J4-PRV' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.011327s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KPT-2012LVSECK-J4-PRV' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.015676s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15585 LIMIT 4 [ RunTime:0.000852s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15585 ORDER BY `minOrder` ASC [ RunTime:0.001385s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15585 ORDER BY `unit` DESC [ RunTime:0.006814s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15585 LIMIT 2 [ RunTime:0.001976s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15585 ORDER BY `minOrder` ASC [ RunTime:0.004286s ]
select * from pdf where partno='LED3-16' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.029950s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'LED3-16' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.028682s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15567 LIMIT 4 [ RunTime:0.037374s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15567 ORDER BY `minOrder` ASC [ RunTime:0.022430s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15567 ORDER BY `unit` DESC [ RunTime:0.009706s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15567 LIMIT 2 [ RunTime:0.010088s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15567 ORDER BY `minOrder` ASC [ RunTime:0.007815s ]
select * from pdf where partno='QS63XXR12' and brandshort='APEM' limit 1 [ RunTime:0.013551s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'QS63XXR12' OR `brand` LIKE 'APEM%' ) ) LIMIT 1 [ RunTime:0.042953s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15549 LIMIT 4 [ RunTime:0.005534s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15549 ORDER BY `minOrder` ASC [ RunTime:0.009586s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15549 ORDER BY `unit` DESC [ RunTime:0.011015s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15549 LIMIT 2 [ RunTime:0.002734s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15549 ORDER BY `minOrder` ASC [ RunTime:0.002900s ]
select * from pdf where partno='PMEG4010BEA,115' and brandshort='NEXPERIA' limit 1 [ RunTime:0.010341s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PMEG4010BEA,115' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.015860s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15498 LIMIT 4 [ RunTime:0.000777s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15498 ORDER BY `minOrder` ASC [ RunTime:0.004949s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15498 ORDER BY `unit` DESC [ RunTime:0.025377s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15498 LIMIT 2 [ RunTime:0.048626s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15498 ORDER BY `minOrder` ASC [ RunTime:0.002194s ]
select * from pdf where partno='L02R3000F1' and brandshort='LED TECHNOLOGY' limit 1 [ RunTime:0.017422s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L02R3000F1' OR `brand` LIKE 'LED TECHNOLOGY%' ) ) LIMIT 1 [ RunTime:0.028539s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15437 LIMIT 4 [ RunTime:0.031751s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15437 ORDER BY `minOrder` ASC [ RunTime:0.022887s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15437 ORDER BY `unit` DESC [ RunTime:0.002310s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15437 LIMIT 2 [ RunTime:0.005938s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15437 ORDER BY `minOrder` ASC [ RunTime:0.023314s ]
select * from pdf where partno='HLMP-3401' and brandshort='BROADCOM' limit 1 [ RunTime:0.028046s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HLMP-3401' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.039616s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15422 LIMIT 4 [ RunTime:0.047687s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15422 ORDER BY `minOrder` ASC [ RunTime:0.050473s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15422 ORDER BY `unit` DESC [ RunTime:0.021469s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15422 LIMIT 2 [ RunTime:0.055387s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15422 ORDER BY `minOrder` ASC [ RunTime:0.014286s ]
select * from pdf where partno='1SS355TE-17' and brandshort='ROHM' limit 1 [ RunTime:0.041137s ]
select foldpath,foldpath2,filename from pdf_file where id=1106100 limit 1 [ RunTime:0.025224s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1SS355TE-17' OR `brand` LIKE 'ROHM%' ) ) LIMIT 1 [ RunTime:0.055008s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15330 LIMIT 4 [ RunTime:0.008996s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15330 ORDER BY `minOrder` ASC [ RunTime:0.039499s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15330 ORDER BY `unit` DESC [ RunTime:0.036130s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15330 LIMIT 2 [ RunTime:0.059786s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15330 ORDER BY `minOrder` ASC [ RunTime:0.026149s ]
select * from pdf where partno='CAT4104VP2-GT3' and brandshort='ONSEMI' limit 1 [ RunTime:0.027952s ]
select foldpath,foldpath2,filename from pdf_file where id=831675 limit 1 [ RunTime:0.028611s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CAT4104VP2-GT3' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.071774s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15323 LIMIT 4 [ RunTime:0.006001s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15323 ORDER BY `minOrder` ASC [ RunTime:0.043816s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15323 ORDER BY `unit` DESC [ RunTime:0.026535s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15323 LIMIT 2 [ RunTime:0.005249s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15323 ORDER BY `minOrder` ASC [ RunTime:0.014403s ]
select * from pdf where partno='BAV74LT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.011579s ]
select foldpath,foldpath2,filename from pdf_file where id=668717 limit 1 [ RunTime:0.002869s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAV74LT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.022920s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15287 LIMIT 4 [ RunTime:0.014513s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15287 ORDER BY `minOrder` ASC [ RunTime:0.031692s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15287 ORDER BY `unit` DESC [ RunTime:0.016143s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15287 LIMIT 2 [ RunTime:0.001955s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15287 ORDER BY `minOrder` ASC [ RunTime:0.014373s ]
select * from pdf where partno='BAS70KFILM' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.003583s ]
select foldpath,foldpath2,filename from pdf_file where id=1196380 limit 1 [ RunTime:0.009391s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAS70KFILM' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.003316s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15195 LIMIT 4 [ RunTime:0.014524s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15195 ORDER BY `minOrder` ASC [ RunTime:0.023221s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15195 ORDER BY `unit` DESC [ RunTime:0.034178s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15195 LIMIT 2 [ RunTime:0.008224s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15195 ORDER BY `minOrder` ASC [ RunTime:0.007961s ]
select * from pdf where partno='ASMB-KTF0-0A306' and brandshort='BROADCOM' limit 1 [ RunTime:0.026320s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ASMB-KTF0-0A306' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.012855s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15142 LIMIT 4 [ RunTime:0.002126s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15142 ORDER BY `minOrder` ASC [ RunTime:0.014789s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15142 ORDER BY `unit` DESC [ RunTime:0.027580s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15142 LIMIT 2 [ RunTime:0.010764s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15142 ORDER BY `minOrder` ASC [ RunTime:0.041997s ]
select * from pdf where partno='BAS20HT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.021990s ]
select foldpath,foldpath2,filename from pdf_file where id=671906 limit 1 [ RunTime:0.007370s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAS20HT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.025593s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.021704s ]