MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id, g.goods_name, g.shop_price, g.goods_thumb, SUM(og.goods_number) as goods_number FROM `haolihao_com`.`smi_goods` AS g, `haolihao_com`.`smi_order_info` AS o, `haolihao_com`.`smi_order_goods` AS og WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 AND (g.cat_id IN ('267','3','115','695','700','703','737','705','736','697','615','724','721','479','217','725','710','720','118','216','113','10','133','251','134','138','510','734','132','143','511','250','4','261','172','733','262','574','169','173','569','154','165','171','265','161','6','109','505','106','743','284','349','108','111','519','742','728','572','352','9','100','96','98','101','211','97','297','504','99','13','688','691','694','566','244','242','473','246','243','294','740','293','716','729','730','503','248','14','518','175','47','520','176','571','50','726','49','46','356','51','11','58','61','495','180','183','319','512','375','52','360','515','55','181','496','500','513','362','516','57','517','177','739','318','738','570','379','744','732','54','2','201','87','196','37','369','497','371','370','194','528','198','91','95','202','741','85','88','92','200','79','295','82','195','90','94','530','288','366','469','735','471','296','303','309','289','304','310','311','312','368','313','498','290','291','306','612','302','305','15','484','42','487','485','608','480','40','481','486','483','16','130','240','238','241','239','218','222','219','223','224','225','228','226','229','227','230','231','234','237','232','235','233','236','298','723','619','299','301','506','507','508','7','256','259','499','377','364','254','257','260','255','258','253','380','381','466','467','474','465','384','390','463','464','393','382','398','404','406','410','413','399','408','405','407','409','412','458','460','459','461','462','386','454','448','456','449','453','457','447','388','424','427','432','435','422','425','428','436','429','414','426','431','434','438','444','416','418','421','419','417','420','391','439','442','445','440','443','446','441','394','395','609','396','383','468','266','661','614','616','641','653','654','628','652','593','678','604','633','579','618','599','627','658','624','648','668','656','590','597','677','36','348','346','347','17','21','24','18','22','25','19','23','26','542','544','550','548','543','546','547','268','339','342','345','745','340','343','338','472','545','341','344','27','333','336','509','334','337','335','328','330','331','329','332','322','325','568','327','326','324','552','558','560','563','556','555','561','553','559','557','562','554','353','357','437','430','358','359','363','365','610','749','534','536','537','535','539','540','538','541','746','551') OR g.goods_id IN ('1','473','474','485','492','493','497','510','511','512','513','514','515','529','530','531','533','539','563','571','572','573','732','902','950','995','1135','1136','1140','1270','1325','1348','1351','1359','1366','1392','1497','1498','1499','1506','1510','1513','1515','1525','1527','1528','1536','1564','1576','1614','1626','1630','1633','1640','1665','1671','1676','1679','1680','1706','1707','1740','1755','1767','1791','1797','1803','1814','1832','1833','1838','1840','1842','1843','1845','1847','1853','1857','1883','1888','1939','1940','1948','1949','1961','1967','1989','1990','1996','2001','2008','2025','2039','2053','2056','2068','2072','2075','2078','2079','2081','2084','2085','2091','2092','2094','2095','2098','2099','2110','2115','2146','2160','2163','2164','2165','2170','2173','2175','2176','2181','2191','2194','2202','2206','2209','2216','2219','2225','2227','2240','2241','2251','2256','2257','2258','2270','2272','2281','2289','2290','2293','2294','2295','2297','2298','2302','2305','2308','2310','2313','2329','2347','2358','2376','2381','2384','2386','2388','2398','2403','2407','2412','2423','2424','2427','2429','2430','2431','2432','2434','2435','2447','2449','2452','2454','2455','2458','2461','2462','2467','2470','2472','2473','2475','2477','2478','2485','2494','2504','2507','2513','2515','2519','2528','2531','2535','2547','2553','2559','2562','2563','2570','2572','2574','2575','2580','2583','2584','2586','2590','2592','2594','2595','2596','2598','2599','2603','2604','2605','2606','2618','2634','2656','2664','2683','2686','2688','2689','2690','2695','2704','2714','2717','2722','2723','2726','2734','2735','2736','2750','2753','2754','2759','2776','2785','2789','2794','2795','2797','2805','2812','2813','2814','2836','2841','2844','2846','2848','2857','2861','2866','2872','2873','2878','2882','2883','2890','2898','2899','2915','2948','2951','2968','2974','2987','2999','3000','3017','3023','3029','3036','3052','3058','3102','3109','3119','3160','3162','3163','3171','3177','3206','3223','3235','3241','3242','3243','3247','3248','3252','3257','3271','3273','3283','3298','3316','3328','3333','3339','3341','3352','3360','3361','3370','3371','3372','3380','3381','3387','3389','3396','3434','3460','3479','3486','3487','3515','3520','3539','3544','3545','3547','3551','3553','3555','3558','3560','3567','3575','3584','3590','3591','3593','3597','3598','3604','3606','3607','3609','3615','3617','3618','3619','3620','3621','3624','3625','3626','3627','3628','3629','3644','3650','3652','3654','3655','3656','3657','3658','3659','3660','3661','3663','3664','3665','3666','3668','3671','3672','3673','3674','3675','3677','3678','3680','3681','3682','3684','3686','3688','3689','3690','3691','3692','3693','3695','3696','3700','3701','3703','3704','3705','3706','3708','3709','3712','3718','3719','3721','3723','3724','3730','3732','3735','3736','3737','3739','3740','3741','3742','3743','3746','3747','3749','3751','3753','3754','3755','3761','3763','3767','3768','3769','3770','3771','3772','3773','3774','3775','3776','3777','3778','3779','3780','3781','3782','3783','3784','3785','3786','3787','3788','3789','3790','3791','3792','3793','3794','3795','3796','3797','3798','3799','3800','3801','3802','3803','3804','3805','3806','3811','3812','3815','3820','3823','3833','3835','3836','3843','3846','3850','3854','3857','3861','3863','3867','3869','3872','3874','3875','3876','3887','3888','3892','3893','3894','3896','3898','3899','3900','3901','3904','3905','3906','3910','3912','3918','3922','3923','3924','3925','3927','3929','3931','3935','3936','3938','3939','3940','3941','3948','3953','3956','3972','3977','3983','3985','3986','3987','3995','3998','4000','4001','4007','4008','4010','4011','4023','4026','4029','4031','4038','4045','4047','4049','4050','4056','4057','4058','4059','4060','4065','4072','4074','4076','4078','4080','4081','4087','4088','4092','4095','4096','4097','4142','4168','4169','4196','4204','4212','4217','4218','4222','4223','4224','4226','4228','4229','4231','4233','4234','4238','4239','4240','4241','4242','4244','4247','4248','4249','4254','4255','4256','4269','4270','4271','4285','4290','4291','4292','4294','4295','4297','4299','4300','4301','4302','4303','4304','4305','4307','4308','4309','4310','4337','4344','4345','4349','4351','4355','4357','4358','4360','4361','4366','4367','4368','4369','4373','4375','4393','4405','4418','4420','4423','4424','4426','4428','4430','4435','4438','4442','4448','4449','4452','4453','4458','4463','4471','4475','4476','4477','4483','4488','4489','4496','4509','4512','4520','4522','4529','4531','4533','4544','4556','4557','4559','4567','4568','4570','4573','4576','4577','4581','4592','4596','4599','4600','4603','4609','4615','4622','4623','4626','4632','4637','4638','4639','4651','4652','4659','4664','4671','4735','4748','4750','4753','4759','4762','4765','4767','4770','4772','4775','4779','4780','4781','4783','4787','4796','4800','4815','4833','4835','4838','4845','4847','4852','4855','4858','4864','4870','4874','4875','4881','4883','4884','4909','4919','4930','4932','4939','4945','4946','4948','4951','4961','4963','4975','4982','4989','4990','5009','5011','5019','5020','5024','5027','5031','5043','5050','5067','5082','5087','5094','5096','5098','5130','5143','5155','5170','5171','5173','5174','5175','5176','5201','5217','5218','5219','5223','5227','5229','5231','5233','5236','5237','5241','5245','5246','5248','5249','5252','5262','5264','5267','5269','5274','5277','5278','5279','5280','5281','5282','5283','5284','5285','5286','5287','5288','5289','5290','5291','5292','5293','5294','5295','5296','5297','5298','5299','5300','5301','5302','5303','5304','5305','5306','5307','5308','5309','5310','5311','5312','5313','5314','5315','5316','5317','5318','5319','5320','5321','5325','5327','5329','5330','5331','5332','5333','5334','5335','5336','5338','5339','5340','5341','5342','5343','5344','5345','5346','5347','5348','5349','5350','5351','5352','5355','5356','5357','5358','5359','5360','5361','5366','5369','5370','5371','5372','5373','5374','5375','5376','5377','5378','5380','5382','5383','5384','5385','5386','5387','5388','5389','5390','5391','5392','5393','5394','5395','5399','5403','5410','5411','5412','5413','5414','5417','5419','5421','5422','5425','5427','5428','5442','5443','5446','5451','5452','5453','5454','5455','5456','5458','5460','5462','5463','5465','5466','5471','5472','5473','5475','5476','5477','5482','5487','5488','5489','5490','5493','5497','5502','5510','5513','5515','5532','5533','5536','5537','5538','5539','5540','5541','5542','5543','5544','5545','5546','5547','5548','5549','5550','5552','5553','5554','5555','5556','5557','5558','5559','5562','5563','5564','5567','5568','5569','5570','5571','5574','5575','5576','5587','5593','5594','5595','5597','5598','5600','5601','5602','5605','5606','5607','5608','5609','5610','5611','5614','5616','5619','5620','5621','5622','5623','5624','5625','5626','5627','5629','5631','5633','5634','5635','5636','5637','5638','5640','5641','5642','5643','5644','5645','5646','5647','5649','5650','5651','5652','5653','5654','5655','5656','5657','5659','5663','5672','5676','5681','5683','5685','5686','5687','5690','5691','5692','5696','5697','5699','5702','5703','5709','5712','5714','5716','5720','5726','5728','5729','5730','5731','5732','5733','5735','5736','5737','5738','5741','5742','5743','5744','5745','5746','5749','5751','5752','5755','5756','5757','5758','5759','5761','5762','5763','5764','5767','5769','5771','5773','5774','5775','5777','5778','5780','5781','5782','5783','5784','5785','5786','5788','5790','5791','5792','5793','5796','5798','5802','5803','5804','5805','5806','5807','5808','5809','5810','5812','5813','5814','5815','5816','5817','5818','5819','5821','5822','5823','5824','5825','5826','5827','5829','5830','5831','5833','5834','5836','5838','5839','5840','5842','5843','5844','5845','5846','5847','5848','5849','5851','5852','5854','5856','5858','5860','5862','5864','5865','5867','5868','5869','5870','5871','5872','5873','5874','5875','5876','5877','5878','5880','5881','5882','5883','5884','5886','5887','5889','5890','5891','5892','5893','5894','5895','5896','5897','5898','5899','5901','5902','5903','5904','5906','5907','5908','5909','5910','5911','5912','5913','5914','5916','5917','5918','5919','5920','5921','5922','5923','5924','5925','5926','5927','5928','5929','5930','5931','5932','5933','5934','5935','5937','5942','5945','5947','5948','5949','5950','5951','5952','5954','5959','5960','5961','5962','5963','5964','5965','5966','5967','5968','5969','5970','5971','5974','5975','5976','5977','5979','5980','5981','5982','5984','5987','5989','5990','5991','5992','5993','5994','5996','5997','6000','6005','6006','6008','6009','6012','6013','6014','6015','6016','6017','6019','6020','6021','6022','6023','6025','6026','6027','6030','6031','6032','6033','6034','6035','6036','6037','6038','6039','6040','6041','6042','6043','6044','6045','6046','6048','6049','6050','6051','6052','6053','6054','6055','6056','6057','6058','6060','6061','6062','6063','6065','6066','6067','6068','6069','6070','6071','6072','6074','6075','6076','6077','6078','6079','6080','6081','6083','6084','6086','6087','6089','6090','6091','6092','6093','6094','6095','6096','6097','6098','6099','6100','6101','6102','6103','6104','6105','6108','6110','6111','6112','6113','6115','6117','6118','6119','6120','6122','6123','6124','6125','6126','6127','6128','6129','6130','6131','6133','6134','6135','6136','6137','6138','6139','6140','6141','6142','6143','6144','6145','6146','6147','6148','6149','6150','6152','6153','6154','6155','6156','6157','6158','6159','6160','6161','6162','6163','6164','6165','6166','6167','6168','6169','6170','6171','6172','6173','6174','6175','6176','6177','6178','6179','6180','6181','6182','6183','6184','6185','6186','6187','6188','6189','6190','6191','6192','6193','6194','6195','6196','6197','6198','6199','6200','6201','6202','6203','6204','6205','6206','6207','6208','6209','6210','6211','6212','6213','6214','6215','6216','6217','6218','6219','6220','6221','6222','6223','6224','6225','6226','6227','6228','6229','6230','6231','6232','6233','6234','6235','6236','6237','6239','6240','6241','6242','6243','6244','6245','6246','6247','6248','6249','6250','6251','6252','6253','6255','6257','6259','6261','6262','6263','6264','6267','6268','6269','6270','6271','6273','6275','6276','6277','6278','6279','6280','6281','6282','6284','6285','6286','6287','6288','6289','6292','6293','6294','6295','6296','6297','6298','6299','6300','6301','6302','6303','6304','6305','6306','6307','6308','6309','6310','6311','6312','6313','6314','6315','6316','6317','6318','6320','6321','6322','6323','6324','6325','6326','6327','6328','6329','6330','6331','6343','6344','6345','6346','6347','6348','6349','6350','6351','6352','6353','6354','6355','6356','6357','6358','6359','6360','6361','6362','6364','6365','6366','6367','6368','6369','6371','6372','6373','6374','6375','6376','6377','6378','6380','6381','6382','6383','6384','6385','6386','6387','6388','6389','6390','6391','6392','6393','6394','6395','6396','6397','6401','6402','6408','6409','6410','6411','6412','6413','6414','6415','6416','6417','6418','6419','6420','6421','6422','6423','6424','6425','6426','6427','6428','6429','6430','6431','6432','6433','6434','6435','6436','6437','6438','6439','6440','6441','6442','6443','6444','6445','6446','6447','6448','6449','6450','6451','6452','6453','6454','6455','6456','6458','6459','6460','6461','6462','6463','6465','6466','6467','6468','6469','6470','6471','6472','6473','6474','6475','6476','6477','6478','6479','6480','6481','6482','6483','6484','6485','6486','6487','6488','6490','6491','6492','6493','6494','6495','6496','6497','6498','6499','6500','6501','6502','6503','6505','6506','6507','6508','6509','6510','6511','6512','6513','6514','6515','6516','6517','6518','6519','6520','6521','6522','6523','6524','6525','6526','6528','6536','6537','6538','6539','6540','6541','6542','6543','6544','6545','6546','6547','6548','6549','6550','6551','6552','6553','6554','6555','6556','6557','6558','6559','6560','6561','6562','6563','6564','6565','6566','6567','6568','6569','6570','6571','6572','6573','6574','6575','6576','6577','6578','6579','6580','6581','6582','6583','6584','6585','6586','6587','6588','6589','6590','6591','6592','6593','6594','6595','6596','6597','6598','6599','6600','6601','6602','6603','6604','6605','6606','6607','6608','6609','6610','6611','6612','6613','6614','6615','6616','6617','6618','6620','6621','6622','6623','6624','6625','6626','6627','6628','6629','6630','6631','6632','6633','6634','6635','6636','6637','6638','6639','6640','6641','6642','6643','6645','6646','6647','6648','6649','6650','6651','6652','6653','6654','6656','6657','6658','6659','6660','6661','6662','6663','6664','6665','6666','6667','6668','6669','6670','6671','6672','6673','6674','6675','6676','6677','6678','6679','6681','6682','6684','6685','6686','6687','6688','6689','6690','6691','6692','6693','6694','6695','6696','6697','6699','6701','6703','6706','6708','6709','6710','6711','6712','6715','6716','6717','6718','6719','6728','6787','6788','6789','6790','6791','6792','6793','6794','6795','6796','6878','6882','6883','6886','6894','6896','6904','6907','6908','6909','6911','6913','6915','6916','6917','6920','6921','6922','6923','6924','6925','6926','6927','6928','6929','6930','7085','7097','7098','7107','7108','7109','7110','7111','7112','7113','7114','7115','7116','7117','7118','7119','7120','7122','7123','7124','7128','7129','7130','7131','7132','7133','7134','7135','7136','7137','7138','7139','7140','7141','7142','7143','7144','7145','7146','7147','7148','7149','7150','7151','7152','7153','7154','7155','7156','7157','7158','7159','7160','7161','7162','7163','7164','7165','7166','7167','7168','7169','7170','7172','7173','7175','7176','7177','7179','7180','7181','7182','7183','7184','7185','7186','7188','7189','7190','7191','7192','7193','7194','7195','7196','7197','7198','7199','7200','7201','7202','7203','7204','7205','7206','7207','7208','7209','7210','7212','7213','7214','7215','7216','7217','7218','7219','7220','7221','7222','7223','7224','7225','7226','7227','7228','7229','7230','7232','7233','7234','7235','7236','7237','7239','7240','7241','7242','7243','7244','7245','7246','7247','7249','7250','7251','7252','7253','7254','7255','7256','7257','7258','7259','7260','7261','7262','7263','7264','7266','7267','7268','7269','7270','7271','7272','7273','7274','7275','7276','7277','7278','7279','7280','7281','7282','7283','7284','7285','7286','7287','7288','7289','7290','7292','7293','7294','7295','7298','7308','7309','7310','7312','7313','7314','7317','7318','7319','7320','7332','7346','7359','7366','7435','7462','7481','7491','7576','7646','7655','7691','7699','7749','7752','7859','7931','7941','7942','7991','8007','8009','8014','8034','8049','8057','8062','8138','8154','8191','8202','8207','8231','8243','8317','8324','8345','8349','8354','8364','8372','8377','8411','8416','8430','8480','8497','8498','8506','8508','8510','8555','8601','8602','8603','8604','8614','8615','8616','8618','8619','8621','8625','8626','8630','8700','8718','8720','8739','8772','8787','8799','8811','8822','8826','8827','8835','8849','8851','8857','8863','8866','8869','8870','8895','8920','8952','8955','8958','8961','8962','8963','8982','8984','9005','9007','9009','9016','9041','9043','9063','9065','9066','9067','9069','9070','9072','9073','9074','9076','9077','9079','9080','9081','9082','9089','9096','9098','9108','9109','9147','9154','9163','9171','9174','9176','9177','9178','9220','9268','9288','9290','9293','9300','9340','9352','9402','9403','9455','9498','9508','9511','9513','9516','9517','9518','9606','9631','9632','9633','9634','9635','9636','9674','9675','9676','9677','9678','9679','9680','9681','9683','9684','9687','9689','9690','9691','9692','9693','9694','9695','9696','9697','9698','9699','9700','9702','9704','9705','9706','9707','9708','9709','9710','9711','9712','9713','9714','9715','9716','9717','9724','9725','9726','9728','9729','9733','9735','9736','9737','9738','9739','9740','9741','9744','9748','9749','9751','9752','9753','9754','9755','9756','9757','9758','9759','9760','9761','9763','9764','9765','9766','9767','9768','9769','9771','9772','9773','9774','9775','9776','9777','9778','9779','9780','9781','9782','9783','9784','9785','9786','9787','9788','9789','9790','9791','9792','9793','9794','9795','9796','9797','9798','9799','9800','9801','9802','9806','9810','9813','9814','9817','9822','9906','9907','9908','9909','9910','9911','9912','9913','9914','9916','9917','9918','9919','9920','9921','9946','9947','9948','9949','9950','9951','9952','9953','9954','9955','9956','9957','9958','9959','9960','9961','9962','9963','9964','9965','9966','9967','9968','9969','9970','9971','9974','9980','9981','9983','9984','9985','9986','9988','9996','9997','9998','9999','10000','10001','10002','10003','10004','10005','10006','10007','10008','10009','10010','10011','10012','10013','10014','10015','10016','10017','10034','10037','10038','10039','10040','10041','10042','10043','10044','10045','10046','10047','10048','10049','10050','10051','10052','10053','10054','10055','10056','10057','10058','10059','10060','10061','10062','10063','10064','10065','10066','10067','10068','10069','10070','10071','10072','10073','10074','10075','10076','10077','10078','10079','10080','10081','10082','10083','10084','10085','10086','10087','10088','10089','10090','10091','10092','10093','10094','10095','10096','10097','10098','10099','10100','10101','10102','10103','10104','10105','10106','10107','10108','10109','10110','10111','10112','10113','10114','10115','10116','10117','10118','10190','10191','10192','10193','10274','10275','10276','10277','10278','10279','10280','10281','10282','10283','10284','10285','10286','10287','10356','10357','10358','10359','10360','10361','10467','10669','10820','10953','10955','10965','10973','10976','10978','10979','10981','10983','11011','11012','11029','11036','11037','11038','11114','11176','11329','11407','11607','11629','11633','11634','11635','11636','11637','11638','11640','11642','11643','11644','11645','11646','11647','11648','11649','11650','11651','11652','11653','11654','11655','11656','11657','11658','11659','11660','11661','11662','11663','11664','11665','11666','11667','11668','11669','11670','11671','11672','11673','11674','11675','11676','11677','11678','11679','11680','11681','11682','11683','11684','11685','11686','11687','11688','11689','11690','11691','11692','11694','11695','11696','11697','11698','11699','11700','11701','11702','11704','11705','11706','11707','11708','11709','11711','11712','11713','11714','11715','11716','11717','11718','11719','11720','11721','11722','11724','11725','11726','11727','11728','11729','11731','11737','11739','11740','11741','11742','11743','11744','11745','11746','11747','11748','11749','11750','11751','11752','11757','11758','11759','11762','11763','11764','11765','11766','11767','11768','11769','11770','11771','11772','11773','11774','11775','11776','11777','11778','11779','11780','11784','11785','11786','11787','11788','11789','11790') ) AND og.order_id = o.order_id AND og.goods_id = g.goods_id AND (o.order_status = '1' OR o.order_status = '5') AND (o.pay_status = '2' OR o.pay_status = '1') AND (o.shipping_status = '1' OR o.shipping_status = '2') GROUP BY g.goods_id ORDER BY goods_number DESC, g.goods_id DESC LIMIT 10 ) [2] => Array ( [error] => Got a packet bigger than 'max_allowed_packet' bytes ) [3] => Array ( [errno] => 1153 ) )