You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '65817980,65815712,65815443,65814722,65814196,65814086,65813814,65811374,65811...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846716,65846609,65846533,65845621,65844711,65844415,65843525,65842934,65842840,65840840,65839447,65839425,65839008,65834786,65833539,65832020,65829995,65829534,65829494,65829002,65828420,65827541,65827280,65827261,65826045,65825699,65824069,65823304,65822591,65820906,65820202,,65817980,65815712,65815443,65814722,65814196,65814086,65813814,65811374,65811161,65809878,65809689,65808019,65807917,65807274,65807150,65806422,65805738,65805312,65804261,65802829,65802388,65802234,65800987,65800655,65798012,65796189,65793428,65792496,65791225,65789812,65789142,65788416,65788141,65787005,65786103,65785734,65785263,65785259,65784649,65783516,65783382,65783228,65783102,65782918,65782801,65781980,65781820,65781810,65781807,65781785,65781736,65781687,65781633,65781584,65781561,65781428,65781397,65781362,65781247,65781206,65781108,65780635,65780461,65779272,65777697,65777334,65776160,65775063,65774512,65772871,65771252,65767483,65767187,65765938,65765344,65760586,65759728,65759637,65758872,65756444,65754665,65754576,65750578,65750103,65749624,65749512,65747734,65747064,65746618,65746482,65746074,65746057,65745881,65745383,65743326,65743249,65741848,65738671,65735721,65732543,65732315,65730834,65729613,65728675,65726198,65726013,65726005,65725927,65724009,65723602,65723577,65723381,65723345,65722343,65722185,65721522,65721366,65721111,65720916,65720519,65719291,65718656,65717697,65716922,65716595,65715070,65714791,65714783,65712968,65711388,65710576,65710281,65709243,65708734,65706254,65705566,65702419,65701012,65700712,65700586,65700246,65699930,65699471,65699280,65698091,65697839,65697629,65697510,65697505,65697397,65697144,65696734,65694390,65694133,65692414,65691853,65691694,65690995,65689000,65688490,65686043,65684365,65684049,65683516,65682493,65682354,65681864,65680747,65679994,65679955,65679520,65678232,65677960,65676785,65675466,65675454,65674848,65673799,65668285,65667722,65666722,65665696,65665611,65665341,65664969,65664477,65664165,65661309,65660923,65660777,65660695,65660687,65660639,65660551,65660305,65659508,65659443,65659289,65659265,65659156,65659043,65658884,65657511,65656037,65655319,65655094,65654166,65653983,65653394,65650185,65649967,65649752,65649689,65649351,65649289,65649126,65645739,65644486,65644379,65641471,65641095,65640898,65640465,65640311,65640193,65640037,65639883,65639678,65639535,65638548,65638349,65637369,65637355,65634368,65633970,65630057,65629690,65629098,65629087,65627880,65627775,65627511,65627385,65622992,65622836,65621668,65621063,65620768,65620127,65617506,65617495,65617389,65617311,65616996,65616782,65616732,65616617,65616544,65616040,65615946,65615881,65615322,65615182,65613140,65612469,65611362,65611051,65610830,65608716,65608398,65608382,65608330,65608124,65608082,65607693,65607685,65607650,65606646,65606376,65606377,65605695,65605533,65605090,65604942,65604765,65604069,65603920,65603591,65603051,65603003,65602907,65602711,65602635,65601969,65601648,65601468,65601359,65600403,65600238,65598771,65598697,65598238,65596449,65592206,65592026,65591145,65591042,65591000,65590678,65590580,65590305,65590246,65589895,65586965,65585090,65584843,65584369,65583703,65583699,65583564,65582890,65582395,65582176,65580379,65579800,65579332,65579305,65578802,65578083,65577678,65577195,65576847,65576729,65574773,65572967,65568765,65568758,65568221,65567266,65567236,65567012,65566887,65566766,65566574,65566511,65566433,65566362,65566280,65566156,65566047,65566019,65565995,65565969,65565680,65564930,65562384,65562121,65561911,65561609,65560059,65558611,65558580,65556219,65555828,65555548,65555511,65555071,65555044,65554788,65554329,65554245,65553748,65552987,65552726,65552017,65550342,65548192,65547757,65545986,65545982,65543178,65542077,65541942,65541847,65541077,65540513,65539969,65539770,65539765,65539048,65538490,65538223,65538188,65537159,65536915,65536875,65536794,65536503,65536469,65536432,65536131,65534671,65532742,65531859,65530498,65527326,65525996,65521683,65520398,65519375,65515889,65514305,65513094,650) AND pubdate>1669734411 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6