You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32' at line 1
select a.classid,a.id,b.newstime from ***_enewstagsdata a,***_ecms_news b where a.tagid='2' and a.id=b.id and a.tid in (,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,5833,5836,5839,5842,5929,6106,8167,8169,8173,8177,8180,8183,8188,8190,8194,8198,8201,8204,8208,8211,8215,8219,8221,8223,8226,8229,8232,8235,8239,8242,8244,8246,8250,8251,8254,8257,8261,8264,8267,8270,8273,8278,8282,8285,8288,8291,8296,8299,8302,8305,8308,8312,8315,8318,8320,8324,8326,8328,8331,8334,8337,9040,9043,9045,9049,9051,9054,9057,9060,9062,9065,9074,9077,9080,9082,9085,9088,9095,9097,9101,9105,9108,9111,9116,9120,9123,9125,9127,9130,9133,9136,9138,9141,9145,9148,9150,9154,9157,9160,9165,9168,9170,9173,9175,9179,9183,9186,9189,9191,9194,9197,9200,9203,9208,9211,9212,9215,9221,9222,9226,9229,9232,9234,9237,9240,9243,9246,9249,9252,9255,9260,9264,9268,9272,9299,9318,9331,9338,9345,9353,9385,9409,9422,9488,9510,9518,9561,9581,9599,9629,9646,9656,9677,9680,9685,9688,9691,9693,9695,9697,9700,9702,9706,9709,9712,9715,9717,9721,9723,9728,9730,9734,9737,9738,9740,9743,9746,9749,9753,9759,9764,9776,9779,9782,9784,9789,9791,9792,9796,9798,9801,9804,9812,9820,9822,9827,9830,9834,9839,9844,9847,14746,15218,15224,15229,15232,15239,15244,15250,15256,15261,15265,15271,15274,15279,15285,15289,15294,16449,18436,18437,18438,18439,18440,18441,18442,18443,18444,18445,18446,18447,18448,18449,18450,18451,18452,18453,18454,18455,18456,18457,18458,18459,18460,18461,18462,18463,18464,18465,18466,18467,18468,18469,18470,18471,18472,18473,18474,18475,18476,18477,18478,18479,18480,18481,18482,18483,18484,18485,18486,18487,18488,18489,18490,18491,18492,18493,18494,18495,18496,18497,18498,18499,18500,18501,18502,18503,18504,18505,18506,18507,18508,18509,18510,18511,18512,18513,18514,18515,18516,18517,18518,18519,18520,18521,18522,18523,18524,18525,18526,18527,18528,18529,18530,18531,18532,18533,18534,18535,18536,18537,18538,18539,18540,18541,18542,18543,18544,18545,18546,18547,18548,18549,18550,18551,18552,18553,18554,18555,18556,18557,18558,18559,18560,18561,18562,18563,18564,18565,18566,18567,18568,18569,18570,18571,18572,18573,18574,18575,18576,18577,18578,18579,18580,18581,18582,18583,18584,18585,18586,18587,18588,18589,18590,18591,18592,18593,18594,18595,18596,18597,18598,18599,18600,18601,18602,18603,18604,18605,18606,18607,18608,18609,18610,18611,18612,18613,18614,18615,18616,18617,18618,18619,18620,18621,18622,18623,18624,18625,18626,18627,18628,18629,18630,18631,18632,18633,18634,18635,18636,18637,18638,18639,18640,18641,18642,18643,18644,18645,18646,18647,18648,18649,18650,18651,18652,18653,18654,18655,18656,18657,18658,18659,18660,18661,18662,18663,18664,18665,18666,18667,18668,18669,18670,18671,18672,18673,18674,18675,18676,18677,32733,35398,35402,35405,35410,35414,35419,35423,35428,35432,35435,35439,35442,35445,35450,35454,35457,35460,35466,35470,35473,35477,35481,35485,35490,35493,35498,35502,35506,35511,35515,35519,35522,35527,35532,35536,35540,35544,35547,35551,35556,35562,35565,35572,35576,35581,35586,35654,35658,35662,35667,35671,35677,35682,35689,35693,35696,35701,35707,35712,35718,35724,35728,35731,35734,35739,35746,35751,35756,35760,35765,35769,35774,35780,35785,35790,35795,35799,35803,35807,35810,35815,35819,35825,35830,35836,35843,35849,35852,35857,35862,35866,35870,35875,35879,35886,35890,35896,35902,35907,35911,35916,35921,35925,35931,35937,35943,35948,35952,35957,35963,35965,35970,35975,35979,35982,35985,35989,35995,36001,36005,36009,36013,36019,36025,36033,36039,36045,36050,36054,36057,36061,36066,36070,36076,36080,36085,36089,36095,36100,36106,36110,36116,36121,36126,36129,36133,36137,36141,36144,36149,36154,36157,36162,36167,36170,36176,36182,36186,36192,36196,36202,36208,36215,36221,36225,36230,36237,36242,36247,36253,36257,36262,36268,36272,36277,36281,36284,36289,36295,36298,36301,36305,36309,36314,36319,36324,36327,36332,36336,36341,36348,36353,36358,36362,36366,36370,36374,36378,36384,36388,36394,36397,36404,36410,36413,36418,36423,36428,36433,36436,36440,36445,36450,36455,36461,36466,36472,36476,36482,36485,36491,36497,36502,36508,36513,36517,36523,36527,36532,36539,36631,36637,36641,36646,36652,36657,36661,36666,36669,36674,36678,36683,36688,36694,36698,36702,45195,45200,45204,45210,45215,45219,45224,45229,45233,45236,45239,45243,45248,45252,45257,45263,45268,45271,45275,45280,45284,45290,45296,45304,45309,45313,45317,45321,45328,45335,45339,45344,45350,45354,45357,45360,45366,45369,45375,45379,45384,45387,45392,45396,45400,45404,45408,45415,45420,45425,45430,45435,45440,45447,45451,45457,45460,45466,45472,45475,45480,45485,45491,45497,45501,45506,45513,45522,45528,45533,45537,45543,45548,45553,45559,45564,45567,45572,45577,45581,45588,45595,45600,45604,45611,45616,45621,45626,45631,45637,45641,45647,45650,45656,45661,45667,45672,45677,45681,45687,45692,45698,45704,45709,45714,45720,45724,45728,45733,45737,45741,45746,45752,45759,45767,45770,45773,45779,45785,45791,45798,45804,45810,45815,45822,45829,45836,45841,45846,45850,45857,45864,45870,45876,45880,45886,45892,45898,45902,45907,45913,45920,45926,45931,45938,45945,45953,45959,45963,46254,46259,46264,46270,46275,46282,46289,46294,46300,46304,46308,46314,46321,46327,46333,46338,46345,46351,46356,46361,46366,46370,46375,46381,46385,46389,46394,46399,46404,46408,46413,46418,46421,46426,46429,46433,46438,46442,46446,46452,46457,46463,46469,46474,46477,46482,46487,46491,46497,46503,46509,46514,46520,46524,46529,46534,46540,46547,46552,46557,46564,46568,46573,46578,46584,46590,46595,46601,46607,46613,46618,46621,46624,46627,46631,46633,46636,46641,46645,46647,46651,46655,46658,46661,46664,46668,46672,46674,46678,46682,46684,46688,46693,46697,46701,46704,46707,46712,46717,46720,56231,56879,57428,57433,65806,67450,67455,67458,67462,67466,67471,67476,67478,67483,67488,67492,67496,67501,67506,67510,67515,67519,67523,67527,67531,67533,67537,67542,67547,67553,67558,67561,67565,67569,67576,67581,67584,67587,67592,67597,67601,67606,67609,67613,67617,67621,67625,67631,67635,67641,67646,67649,67652,67655,67660,67666,67673,67678,67683,67685,67689,67694,67699,67703,67706,67709,67714,67717,67721,67725,67729,67732,67737,67741,67747,67750,67754,67757,67762,67769,67774,67777,67782,67787,67793,67798,67802,67807,67810,67812,67817,67820,67824,67828,67834,67838,67842,67847,67851,67855,67860,67865,67869,67872,67876,71409,71420,72048,72801,74939,75909,76766,77154,77249,77317,77430,77532,77632,77994,78000,78020,78035,78078,78134,78146,78419,79892,79897,80066,80091,80213,82697,82702,82707,82711,82714,82719,82725,82729,82734,82737,82742,82746,82751,82754,82756,82760,82765,82767,82770,82776,82781,82784,82788,82792,82796,82800,82803,82807,82812,82816,82822,82828,82833,82839,82845,82847,82854,82858,82862,82866,82868,82870,82874,82876,82880,82885,82888,82893,82896,90384,90413,90421,90441,90445,90458,90467,90477,90496,90507,90530,90632,90649,90653,90674,92913,92958,92963,93013,93066,93072,93082,93119,93125,93131,93153,93159,93165,93184,93198,93207,93213,93260,93272,93299,93303,93329,93344,93360,93386,93401,93410,93424,93429,93440,93446,93469,93488,93512,93538,93567,93573,93579,93600,93613,93628,93633,93649,93654,93660,93673,93696,93781,93796,93849,93868,93886,93939,93960,93998,94010,94019,94035,94045,94083,94110,94188,94198,94202,94207,94212,94245,94255,94259,94264,94275,94284,94303,94325,94330,94350,94392,94430,94450,94456,94466,94475,94539,94557,94561,94608,94629,94664,94673,94688,94718,94760,94763,94774,94799,94843,94886,94921,94973,94980,95015,95034,95046,95080,95095,95114,95119,95146,95184,95240,95301,95334,95357,95371,95377,95382,95451,95473,95501,95540,95549,95562,95631,95647,95655,95694,95715,95746,95801,95869,95966,96013,96052,96088,96149,96154,96160,96240,96255,96262,96302,96308,96316,96328,96345,96364,96372,96398,96404,96417,96423,96459,96483,96497,96530,96544,96572,96608,96628,96639,96691,96698,96730,96768,96811,96824,96831,96867,96947,96968,96998,97042,97091,97108,97119,97193,97237,97300,97307,97372,97391,97394,97414,97419,97436,97449,97455,97473,97516,97526,97530,97541,97545,97571,97589,97604,97632,97638,97644,97649,97653,97688,97722,97765,97768,97832,97859,97865,97907,97914,97928,97944,97962,97966,97971,98017,98023,98052,98062,98067,98087,98160,98164,98169,98174,98181,98203,98211,98219,98260,98264,98280,98303,98305,98333,98338,98349,98362,98367,98378,98390,98421,98439,98443,98459,101352,101432,101451,101509,101555,101606,101644,101882,102030,105807,105904,105914,105956,106050,106124,106178,106388,106531,106581,106696,106854,107699,108414,108476,108749,109043,109204,109582,109936,110529,111530,111662,111879,112520,112540,112586,112828,113182,113330,113481,114052,114374,114544,114635,114690,114858,115167,115273,115291) order by b.newstime desc limit 0,20