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,38588,38592,38596,38601,38606,38610,38615,38619,38623,38626,38629,38633,38637,38641,38646,38652,38657,38660,38664,38669,38673,38678,38684,38691,38696,38700,38704,38708,38715,38721,38725,38730,38735,38740,38743,38746,38752,38755,38761,38765,38770,38773,38778,38782,38786,38790,38794,38800,38805,38810,38815,38820,38825,38831,38835,38841,38844,38850,38856,38859,38863,38868,38873,38878,38882,38887,38894,38903,38909,38914,38918,38923,38927,38932,38938,38943,38946,38951,38956,38960,38965,38971,38976,38980,38986,38991,38996,39001,39006,39012,39016,39022,39025,39031,39035,39040,39045,39050,39054,39060,39065,39071,39077,39082,39087,39092,39096,39100,39105,39108,39112,39117,39122,39129,39136,39140,39143,39149,39155,39161,39168,39174,39180,39185,39192,39199,39205,39210,39215,39219,39225,39231,39236,39242,39246,39252,39258,39264,39268,39272,39277,39283,39289,39294,39300,39307,39314,39319,39323,39329,39334,39339,39345,39350,39357,39364,39369,39375,39379,39383,39389,39396,39402,39408,39413,39420,39426,39431,39435,39440,39444,39449,39454,39458,39462,39467,39472,39477,39481,39485,39490,39493,39498,39501,39505,39510,39514,39517,39523,39528,39534,39540,39545,39548,39553,39558,39562,39568,39573,39579,39584,39590,39594,39599,39604,39610,39617,39622,39627,39634,39638,39643,39648,39654,39660,39665,39671,39677,39683,39688,39691,39694,39697,39700,39702,39705,39710,39714,39716,39720,39724,39727,39730,39733,39737,39741,39743,39747,39751,39753,39757,39762,39766,39770,39773,39776,39781,39786,39789,39793,39797,39800,39804,39808,39813,39817,39819,39824,39829,39833,39837,39842,39847,39851,39856,39860,39864,39868,39872,39874,39878,39883,39888,39894,39899,39902,39906,39910,39917,39922,39925,39928,39933,39938,39942,39947,39950,39954,39958,39961,39965,39971,39975,39980,39985,39988,39991,39994,45272,45911,46992,46997,55425,60626,60638,61109,61861,77668,77674,77680,77685,77689,77691,77695,77699,77704,77708,77711,77714,77719,77723,77727,77731,77735,77738,77743,77747,77753,77756,77760,77763,77768,77774,77779,77782,77787,77792,77798,77803,77808,77812,77815,77817,77822,77825,77830,77834,77840,77844,77848,77853,77857,77861,77866,77872,77876,77879,77883,77886,77891,77896,77900,77903,77908,77914,77918,77923,77926,77930,77934,77939,77942,77944,77948,77953,77955,77958,77963,77968,77971,77975,77978,77982,77986,77989,77993,77998,78002,78008,78013,78018,78024,78030,78032,78039,78043,78047,78051,78053,78055,78058,78060,78064,78069,78072,78077,78080,78815,78891,79757,79763,79772,79777,79787,79790,79798,79801,79806,79810,79816,79820,79823,79832,79841,79844,79849,79852,79858,79866,79871,79875,79881,79885,79890,79899,79904,79911,79920,79924,79927,79932,79941,79947,79951,79955,79962,79966,79970,79976,79981,79985,79990,79994,80000,80003,80006,80011,80015,80020,80024,80030,80034,80038,80044,80046,87811,87816,87820,87825,87829,87834,87840,87846,87851,87855,87861,87865,87872,87877,87882,87888,87894,87898,87906,87909,87914,87918,87924,87928,87932,87936,87940,87944,87949,87954,87959,87964,87970,87973,87977,87981,87986,87991,87997,88003,88006,88011,88016,88021,88025,88030,88037,88041,88045,88051,88055,88060,88066,88072,88078,88082,88087,88094,88099,88105,88111,88116,88122,88127,88130,88136,88141,88144,88147,88152,88158,88163,88167,88171,88176,88181,88187,88191,88195,88199,88203,88209,88215,88221,88225,88228,88233,88237,88242,88246,88251,88258,88264,88270,88276,88283,88288,88292,88298,88304,88310,88315,88322,88327,88332,88338,88342,88346,88351,88355,88358,88362,88365,88370,88375,88380,88386,88392,88397,88403,88408,88412,88417,88421,88426,88431,88435,88441,88448,88452,88457,88463,88468,88474,88480,88485,88490,88496,88502,88508,88514,88521,88527,88533,88539,88545,88549,88555,88560,88565,88571,88575,88581,88586,88592,88599,88604,88609,88614,88620,88626,88632,88639,88645,88650,88657,88664,88668,88674,88682,88687,88692,88699,88704,88710,88717,88724,88731,88737,88743,88748,88754,88759,88765,88769,88777,88783,88789,88795,88801,88807,88813,88818,88824,88830,88836,88840,88846,88850,88855,88859,88864,88869,88874,88881,88885,88891,88903,88907,88912,88916,88922,88928,88934,88938,88942,88947,88954,88958,88964,88967,88971,88976,88980,88984,88990,88996,89002,89006,89013,89018,89024,89029,89034,89037,89043,89048,89055,89059,89064,89068,89073,89078,89083,89090,89095,89101,89105,89111,89115,89119,89124,89129,89134,89139,89145,89150,89155,89161,89165,89169,89173,89178,89183,89188,89193,89242,89274,89281,89294,89304,89326,89338,89366,89370,89376,89390,89394,89474,89478,89495,89584,89615,89624,89628,89637,89698,89708,89720,89734,89757,89782,89798,89809,89816,89826,89855,89860,89890,89900,89936,89954,89990,90023,90039,90094,90110,90146,90244,90258,90264,90288,90305,90312,90353,90357,90379,90385,90431,90456,90506,90535,90567,90574,90638,90679,90723,90750,90759,90776,90855,90889,90928,90935,90942,90960,90973,91007,91074,91080,91130,91183,91320,91356,91493,91593,91612,91624,91643,91691,91698,91708,91731,91737,91747,91761,91772,91813,91878,91884,91896,91911,91944,91963,91968,92048,92077,92136,92182,92192,92198,92215,92260,92276,92287,92298,92342,92385,92388,92395,92421,92426,92443,92486,92557,92562,92577,92584,92597,92608,92663,92683,92697,92711,92717,92742,92745,92797,92825,92834,92840,92871,92891,93018,93032,93040,93053,93057,93064,93091,93101,93121,93138,93161,93176,93189,93192,93199,93217,93222,93253,96116,96248,96333,96356,96382,96436,96439,96456,96489,96494,96500,96509,96530,96560,96580,96597,96602,96611,96627,96676,96689,96719,96723,96747,96772,96776,96804,96853,96856,96880,96904,98204,100575,101289,101453,101787,103615,103967,105164,106023,106155,106298,106366,106644,107138,107335,107718,107874,108173,108350,109168,109200,109235,109256,109585,109629,109835) order by b.newstime desc limit 0,20