SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002693s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.013879s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002413s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.0' ) [ RunTime:0.023198s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002511s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.005484s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 21 LIMIT 1 [ RunTime:0.010122s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 21 [ RunTime:0.021390s ]
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.010105s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002305s ]
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.007693s ]
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.015682s ]
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.039868s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.013089s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16237 LIMIT 4 [ RunTime:0.013176s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001074s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16237 ORDER BY `minOrder` ASC [ RunTime:0.025449s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.004742s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16237 ORDER BY `unit` DESC [ RunTime:0.025391s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003891s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16237 LIMIT 2 [ RunTime:0.033379s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16237 ORDER BY `minOrder` ASC [ RunTime:0.033898s ]
select * from pdf where partno='724' and brandshort='SCS' limit 1 [ RunTime:0.055815s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001449s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '724' OR `brand` LIKE 'SCS%' ) ) LIMIT 1 [ RunTime:0.038138s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16231 LIMIT 4 [ RunTime:0.028022s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16231 ORDER BY `minOrder` ASC [ RunTime:0.031193s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16231 ORDER BY `unit` DESC [ RunTime:0.016576s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16231 LIMIT 2 [ RunTime:0.009739s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16231 ORDER BY `minOrder` ASC [ RunTime:0.005855s ]
select * from pdf where partno='BAT54WS-E3-08' and brandshort='VISHAY' limit 1 [ RunTime:0.009494s ]
select foldpath,foldpath2,filename from pdf_file where id=1916027 limit 1 [ RunTime:0.018384s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54WS-E3-08' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.032146s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16149 LIMIT 4 [ RunTime:0.018320s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16149 ORDER BY `minOrder` ASC [ RunTime:0.048326s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16149 ORDER BY `unit` DESC [ RunTime:0.039059s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16149 LIMIT 2 [ RunTime:0.038286s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16149 ORDER BY `minOrder` ASC [ RunTime:0.074294s ]
select * from pdf where partno='STPS160U' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.106521s ]
select foldpath,foldpath2,filename from pdf_file where id=419620 limit 1 [ RunTime:0.072190s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'STPS160U' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.058951s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16127 LIMIT 4 [ RunTime:0.031974s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16127 ORDER BY `minOrder` ASC [ RunTime:0.182016s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16127 ORDER BY `unit` DESC [ RunTime:0.092934s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16127 LIMIT 2 [ RunTime:0.090950s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16127 ORDER BY `minOrder` ASC [ RunTime:0.038692s ]
select * from pdf where partno='L-1384AD/1GD' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.184104s ]
select foldpath,foldpath2,filename from pdf_file where id=1387251 limit 1 [ RunTime:0.150835s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L-1384AD/1GD' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.114193s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16013 LIMIT 4 [ RunTime:0.163062s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16013 ORDER BY `minOrder` ASC [ RunTime:0.183692s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16013 ORDER BY `unit` DESC [ RunTime:0.033067s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16013 LIMIT 2 [ RunTime:0.054067s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16013 ORDER BY `minOrder` ASC [ RunTime:0.035304s ]
select * from pdf where partno='L-130WDT/1EGW' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.137358s ]
select foldpath,foldpath2,filename from pdf_file where id=1387246 limit 1 [ RunTime:0.066544s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L-130WDT/1EGW' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.118451s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15830 LIMIT 4 [ RunTime:0.041014s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15830 ORDER BY `minOrder` ASC [ RunTime:0.185886s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15830 ORDER BY `unit` DESC [ RunTime:0.027286s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15830 LIMIT 2 [ RunTime:0.028148s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15830 ORDER BY `minOrder` ASC [ RunTime:0.068388s ]
select * from pdf where partno='BAT48' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.068260s ]
select foldpath,foldpath2,filename from pdf_file where id=397613 limit 1 [ RunTime:0.075381s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT48' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.220953s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15743 LIMIT 4 [ RunTime:0.110239s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15743 ORDER BY `minOrder` ASC [ RunTime:0.064401s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15743 ORDER BY `unit` DESC [ RunTime:0.028150s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15743 LIMIT 2 [ RunTime:0.076622s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15743 ORDER BY `minOrder` ASC [ RunTime:0.024551s ]
select * from pdf where partno='BAW56LT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.056298s ]
select foldpath,foldpath2,filename from pdf_file where id=568830 limit 1 [ RunTime:0.056068s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAW56LT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.060129s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15635 LIMIT 4 [ RunTime:0.049493s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15635 ORDER BY `minOrder` ASC [ RunTime:0.048137s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15635 ORDER BY `unit` DESC [ RunTime:0.037762s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15635 LIMIT 2 [ RunTime:0.015200s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15635 ORDER BY `minOrder` ASC [ RunTime:0.011675s ]
select * from pdf where partno='KPT-2012LVSECK-J4-PRV' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.009578s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KPT-2012LVSECK-J4-PRV' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.012375s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15585 LIMIT 4 [ RunTime:0.000779s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15585 ORDER BY `minOrder` ASC [ RunTime:0.017333s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15585 ORDER BY `unit` DESC [ RunTime:0.017346s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15585 LIMIT 2 [ RunTime:0.002866s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15585 ORDER BY `minOrder` ASC [ RunTime:0.008140s ]
select * from pdf where partno='LED3-16' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.014079s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'LED3-16' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.004401s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15567 LIMIT 4 [ RunTime:0.007603s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15567 ORDER BY `minOrder` ASC [ RunTime:0.014865s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15567 ORDER BY `unit` DESC [ RunTime:0.014587s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15567 LIMIT 2 [ RunTime:0.006500s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15567 ORDER BY `minOrder` ASC [ RunTime:0.005836s ]
select * from pdf where partno='QS63XXR12' and brandshort='APEM' limit 1 [ RunTime:0.014976s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'QS63XXR12' OR `brand` LIKE 'APEM%' ) ) LIMIT 1 [ RunTime:0.013267s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15549 LIMIT 4 [ RunTime:0.023667s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15549 ORDER BY `minOrder` ASC [ RunTime:0.014275s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15549 ORDER BY `unit` DESC [ RunTime:0.023468s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15549 LIMIT 2 [ RunTime:0.008416s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15549 ORDER BY `minOrder` ASC [ RunTime:0.004804s ]
select * from pdf where partno='PMEG4010BEA,115' and brandshort='NEXPERIA' limit 1 [ RunTime:0.009173s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PMEG4010BEA,115' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.020859s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15498 LIMIT 4 [ RunTime:0.007415s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15498 ORDER BY `minOrder` ASC [ RunTime:0.006491s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15498 ORDER BY `unit` DESC [ RunTime:0.026090s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15498 LIMIT 2 [ RunTime:0.009486s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15498 ORDER BY `minOrder` ASC [ RunTime:0.000367s ]
select * from pdf where partno='L02R3000F1' and brandshort='LED TECHNOLOGY' limit 1 [ RunTime:0.003061s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L02R3000F1' OR `brand` LIKE 'LED TECHNOLOGY%' ) ) LIMIT 1 [ RunTime:0.008643s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15437 LIMIT 4 [ RunTime:0.008500s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15437 ORDER BY `minOrder` ASC [ RunTime:0.007990s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15437 ORDER BY `unit` DESC [ RunTime:0.007060s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15437 LIMIT 2 [ RunTime:0.001867s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15437 ORDER BY `minOrder` ASC [ RunTime:0.002946s ]
select * from pdf where partno='HLMP-3401' and brandshort='BROADCOM' limit 1 [ RunTime:0.003268s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HLMP-3401' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.006629s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15422 LIMIT 4 [ RunTime:0.005139s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15422 ORDER BY `minOrder` ASC [ RunTime:0.000827s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15422 ORDER BY `unit` DESC [ RunTime:0.006670s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15422 LIMIT 2 [ RunTime:0.000743s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15422 ORDER BY `minOrder` ASC [ RunTime:0.003409s ]
select * from pdf where partno='1SS355TE-17' and brandshort='ROHM' limit 1 [ RunTime:0.014007s ]
select foldpath,foldpath2,filename from pdf_file where id=1106100 limit 1 [ RunTime:0.008829s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1SS355TE-17' OR `brand` LIKE 'ROHM%' ) ) LIMIT 1 [ RunTime:0.008146s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15330 LIMIT 4 [ RunTime:0.006337s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15330 ORDER BY `minOrder` ASC [ RunTime:0.001657s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15330 ORDER BY `unit` DESC [ RunTime:0.010863s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15330 LIMIT 2 [ RunTime:0.026785s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15330 ORDER BY `minOrder` ASC [ RunTime:0.004996s ]
select * from pdf where partno='CAT4104VP2-GT3' and brandshort='ONSEMI' limit 1 [ RunTime:0.003447s ]
select foldpath,foldpath2,filename from pdf_file where id=831675 limit 1 [ RunTime:0.000856s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CAT4104VP2-GT3' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.021012s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15323 LIMIT 4 [ RunTime:0.002891s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15323 ORDER BY `minOrder` ASC [ RunTime:0.000480s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15323 ORDER BY `unit` DESC [ RunTime:0.004374s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15323 LIMIT 2 [ RunTime:0.001308s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15323 ORDER BY `minOrder` ASC [ RunTime:0.009898s ]
select * from pdf where partno='BAV74LT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.009514s ]
select foldpath,foldpath2,filename from pdf_file where id=668717 limit 1 [ RunTime:0.009528s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAV74LT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.017376s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15287 LIMIT 4 [ RunTime:0.012583s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15287 ORDER BY `minOrder` ASC [ RunTime:0.003194s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15287 ORDER BY `unit` DESC [ RunTime:0.002390s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15287 LIMIT 2 [ RunTime:0.006496s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15287 ORDER BY `minOrder` ASC [ RunTime:0.000297s ]
select * from pdf where partno='BAS70KFILM' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.009217s ]
select foldpath,foldpath2,filename from pdf_file where id=1196380 limit 1 [ RunTime:0.010339s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAS70KFILM' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.006174s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15195 LIMIT 4 [ RunTime:0.000701s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15195 ORDER BY `minOrder` ASC [ RunTime:0.000609s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15195 ORDER BY `unit` DESC [ RunTime:0.003507s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15195 LIMIT 2 [ RunTime:0.000415s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15195 ORDER BY `minOrder` ASC [ RunTime:0.000242s ]
select * from pdf where partno='ASMB-KTF0-0A306' and brandshort='BROADCOM' limit 1 [ RunTime:0.001912s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ASMB-KTF0-0A306' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.004330s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15142 LIMIT 4 [ RunTime:0.000477s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15142 ORDER BY `minOrder` ASC [ RunTime:0.002069s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15142 ORDER BY `unit` DESC [ RunTime:0.008003s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15142 LIMIT 2 [ RunTime:0.000529s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15142 ORDER BY `minOrder` ASC [ RunTime:0.000247s ]
select * from pdf where partno='BAS20HT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.001599s ]
select foldpath,foldpath2,filename from pdf_file where id=671906 limit 1 [ RunTime:0.002867s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAS20HT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.018705s ]
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.011730s ]