SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001868s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.002327s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002739s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.113' ) [ RunTime:0.000978s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002069s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000338s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 21 LIMIT 1 [ RunTime:0.000266s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 21 [ RunTime:0.000222s ]
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.001206s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002114s ]
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.002722s ]
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.002567s ]
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.001461s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002321s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16237 LIMIT 4 [ RunTime:0.000532s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.004195s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16237 ORDER BY `minOrder` ASC [ RunTime:0.000643s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003319s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16237 ORDER BY `unit` DESC [ RunTime:0.000634s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003542s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16237 LIMIT 2 [ RunTime:0.000636s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16237 ORDER BY `minOrder` ASC [ RunTime:0.002099s ]
select * from pdf where partno='724' and brandshort='SCS' limit 1 [ RunTime:0.005576s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001954s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '724' OR `brand` LIKE 'SCS%' ) ) LIMIT 1 [ RunTime:0.001100s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16231 LIMIT 4 [ RunTime:0.002382s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16231 ORDER BY `minOrder` ASC [ RunTime:0.005986s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16231 ORDER BY `unit` DESC [ RunTime:0.001911s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16231 LIMIT 2 [ RunTime:0.002299s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16231 ORDER BY `minOrder` ASC [ RunTime:0.001478s ]
select * from pdf where partno='BAT54WS-E3-08' and brandshort='VISHAY' limit 1 [ RunTime:0.003131s ]
select foldpath,foldpath2,filename from pdf_file where id=1916027 limit 1 [ RunTime:0.008433s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54WS-E3-08' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.016805s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16149 LIMIT 4 [ RunTime:0.005418s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16149 ORDER BY `minOrder` ASC [ RunTime:0.008959s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16149 ORDER BY `unit` DESC [ RunTime:0.006453s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16149 LIMIT 2 [ RunTime:0.002050s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16149 ORDER BY `minOrder` ASC [ RunTime:0.002362s ]
select * from pdf where partno='STPS160U' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.004418s ]
select foldpath,foldpath2,filename from pdf_file where id=419620 limit 1 [ RunTime:0.013567s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'STPS160U' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.039696s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16127 LIMIT 4 [ RunTime:0.021437s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16127 ORDER BY `minOrder` ASC [ RunTime:0.004637s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16127 ORDER BY `unit` DESC [ RunTime:0.002643s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16127 LIMIT 2 [ RunTime:0.003588s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16127 ORDER BY `minOrder` ASC [ RunTime:0.003860s ]
select * from pdf where partno='L-1384AD/1GD' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.007054s ]
select foldpath,foldpath2,filename from pdf_file where id=1387251 limit 1 [ RunTime:0.010790s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L-1384AD/1GD' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.014302s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16013 LIMIT 4 [ RunTime:0.003743s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16013 ORDER BY `minOrder` ASC [ RunTime:0.003467s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16013 ORDER BY `unit` DESC [ RunTime:0.004342s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16013 LIMIT 2 [ RunTime:0.005892s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16013 ORDER BY `minOrder` ASC [ RunTime:0.005720s ]
select * from pdf where partno='L-130WDT/1EGW' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.004713s ]
select foldpath,foldpath2,filename from pdf_file where id=1387246 limit 1 [ RunTime:0.005830s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L-130WDT/1EGW' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.003425s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15830 LIMIT 4 [ RunTime:0.008685s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15830 ORDER BY `minOrder` ASC [ RunTime:0.017638s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15830 ORDER BY `unit` DESC [ RunTime:0.008033s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15830 LIMIT 2 [ RunTime:0.009570s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15830 ORDER BY `minOrder` ASC [ RunTime:0.017031s ]
select * from pdf where partno='BAT48' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.017492s ]
select foldpath,foldpath2,filename from pdf_file where id=397613 limit 1 [ RunTime:0.009402s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT48' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.001419s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15743 LIMIT 4 [ RunTime:0.001533s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15743 ORDER BY `minOrder` ASC [ RunTime:0.011069s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15743 ORDER BY `unit` DESC [ RunTime:0.006807s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15743 LIMIT 2 [ RunTime:0.002797s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15743 ORDER BY `minOrder` ASC [ RunTime:0.002289s ]
select * from pdf where partno='BAW56LT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.005567s ]
select foldpath,foldpath2,filename from pdf_file where id=568830 limit 1 [ RunTime:0.007271s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAW56LT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.017990s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15635 LIMIT 4 [ RunTime:0.003174s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15635 ORDER BY `minOrder` ASC [ RunTime:0.006487s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15635 ORDER BY `unit` DESC [ RunTime:0.012809s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15635 LIMIT 2 [ RunTime:0.010824s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15635 ORDER BY `minOrder` ASC [ RunTime:0.003953s ]
select * from pdf where partno='KPT-2012LVSECK-J4-PRV' and brandshort='KINGBRIGHT' limit 1 [ RunTime:0.008153s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KPT-2012LVSECK-J4-PRV' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.006565s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15585 LIMIT 4 [ RunTime:0.010695s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15585 ORDER BY `minOrder` ASC [ RunTime:0.008140s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15585 ORDER BY `unit` DESC [ RunTime:0.007889s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15585 LIMIT 2 [ RunTime:0.015251s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15585 ORDER BY `minOrder` ASC [ RunTime:0.010436s ]
select * from pdf where partno='LED3-16' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.016363s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'LED3-16' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.013804s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15567 LIMIT 4 [ RunTime:0.010897s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15567 ORDER BY `minOrder` ASC [ RunTime:0.002875s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15567 ORDER BY `unit` DESC [ RunTime:0.008009s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15567 LIMIT 2 [ RunTime:0.002805s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15567 ORDER BY `minOrder` ASC [ RunTime:0.001174s ]
select * from pdf where partno='QS63XXR12' and brandshort='APEM' limit 1 [ RunTime:0.006163s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'QS63XXR12' OR `brand` LIKE 'APEM%' ) ) LIMIT 1 [ RunTime:0.011717s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15549 LIMIT 4 [ RunTime:0.002565s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15549 ORDER BY `minOrder` ASC [ RunTime:0.003718s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15549 ORDER BY `unit` DESC [ RunTime:0.003033s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15549 LIMIT 2 [ RunTime:0.002583s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15549 ORDER BY `minOrder` ASC [ RunTime:0.001954s ]
select * from pdf where partno='PMEG4010BEA,115' and brandshort='NEXPERIA' limit 1 [ RunTime:0.006442s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PMEG4010BEA,115' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.022633s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15498 LIMIT 4 [ RunTime:0.004550s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15498 ORDER BY `minOrder` ASC [ RunTime:0.010126s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15498 ORDER BY `unit` DESC [ RunTime:0.004168s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15498 LIMIT 2 [ RunTime:0.006045s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15498 ORDER BY `minOrder` ASC [ RunTime:0.005649s ]
select * from pdf where partno='L02R3000F1' and brandshort='LED TECHNOLOGY' limit 1 [ RunTime:0.004413s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L02R3000F1' OR `brand` LIKE 'LED TECHNOLOGY%' ) ) LIMIT 1 [ RunTime:0.006442s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15437 LIMIT 4 [ RunTime:0.012706s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15437 ORDER BY `minOrder` ASC [ RunTime:0.004749s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15437 ORDER BY `unit` DESC [ RunTime:0.015507s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15437 LIMIT 2 [ RunTime:0.012487s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15437 ORDER BY `minOrder` ASC [ RunTime:0.006707s ]
select * from pdf where partno='HLMP-3401' and brandshort='BROADCOM' limit 1 [ RunTime:0.007426s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HLMP-3401' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.008696s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15422 LIMIT 4 [ RunTime:0.000394s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15422 ORDER BY `minOrder` ASC [ RunTime:0.000369s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15422 ORDER BY `unit` DESC [ RunTime:0.000874s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15422 LIMIT 2 [ RunTime:0.001043s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15422 ORDER BY `minOrder` ASC [ RunTime:0.001295s ]
select * from pdf where partno='1SS355TE-17' and brandshort='ROHM' limit 1 [ RunTime:0.001369s ]
select foldpath,foldpath2,filename from pdf_file where id=1106100 limit 1 [ RunTime:0.002691s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1SS355TE-17' OR `brand` LIKE 'ROHM%' ) ) LIMIT 1 [ RunTime:0.003539s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15330 LIMIT 4 [ RunTime:0.003989s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15330 ORDER BY `minOrder` ASC [ RunTime:0.007360s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15330 ORDER BY `unit` DESC [ RunTime:0.004152s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15330 LIMIT 2 [ RunTime:0.001149s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15330 ORDER BY `minOrder` ASC [ RunTime:0.000266s ]
select * from pdf where partno='CAT4104VP2-GT3' and brandshort='ONSEMI' limit 1 [ RunTime:0.006717s ]
select foldpath,foldpath2,filename from pdf_file where id=831675 limit 1 [ RunTime:0.005036s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CAT4104VP2-GT3' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.019198s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15323 LIMIT 4 [ RunTime:0.005860s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15323 ORDER BY `minOrder` ASC [ RunTime:0.000621s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15323 ORDER BY `unit` DESC [ RunTime:0.008365s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15323 LIMIT 2 [ RunTime:0.007348s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15323 ORDER BY `minOrder` ASC [ RunTime:0.000374s ]
select * from pdf where partno='BAV74LT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.009798s ]
select foldpath,foldpath2,filename from pdf_file where id=668717 limit 1 [ RunTime:0.008015s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAV74LT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.019157s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15287 LIMIT 4 [ RunTime:0.002376s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15287 ORDER BY `minOrder` ASC [ RunTime:0.002619s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15287 ORDER BY `unit` DESC [ RunTime:0.001704s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15287 LIMIT 2 [ RunTime:0.000638s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15287 ORDER BY `minOrder` ASC [ RunTime:0.002542s ]
select * from pdf where partno='BAS70KFILM' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.005282s ]
select foldpath,foldpath2,filename from pdf_file where id=1196380 limit 1 [ RunTime:0.006540s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAS70KFILM' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.013442s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15195 LIMIT 4 [ RunTime:0.004457s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15195 ORDER BY `minOrder` ASC [ RunTime:0.001731s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15195 ORDER BY `unit` DESC [ RunTime:0.001510s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15195 LIMIT 2 [ RunTime:0.003775s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15195 ORDER BY `minOrder` ASC [ RunTime:0.003989s ]
select * from pdf where partno='ASMB-KTF0-0A306' and brandshort='BROADCOM' limit 1 [ RunTime:0.003302s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ASMB-KTF0-0A306' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.012433s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15142 LIMIT 4 [ RunTime:0.007107s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15142 ORDER BY `minOrder` ASC [ RunTime:0.002277s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15142 ORDER BY `unit` DESC [ RunTime:0.005551s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15142 LIMIT 2 [ RunTime:0.005511s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15142 ORDER BY `minOrder` ASC [ RunTime:0.006068s ]
select * from pdf where partno='BAS20HT1G' and brandshort='ONSEMI' limit 1 [ RunTime:0.004153s ]
select foldpath,foldpath2,filename from pdf_file where id=671906 limit 1 [ RunTime:0.008646s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAS20HT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.027680s ]
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.003406s ]