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 '65817556,65816570,65815737,65814097,65810433,65810282,65809803,65801225,65799...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65855064,65854194,65849404,65849375,65849233,65849163,65847139,65846716,65845539,65843416,65843098,65842329,65841471,65840304,65840274,65840208,65839938,65839734,65839553,65838994,65838608,65838119,65837492,65836567,65834491,65832967,65824554,65823984,65823434,,65817556,65816570,65815737,65814097,65810433,65810282,65809803,65801225,65799428,65799017,65798894,65791356,65789199,65784937,65784766,65784520,65784118,65781526,65776075,65767148,65764727,65759238,65757677,65756009,65754478,65753032,65752838,65751553,65751433,65750673,65750174,65750046,65749058,65748811,65748775,65747574,65747235,65746747,65746370,65744359,65744169,65743347,65742441,65742347,65741651,65740860,65740733,65740611,65740549,65739699,65737776,65733925,65725150,65718989,65713288,65710581,65710338,65709847,65709815,65703898,65701628,65700228,65700085,65700013,65698142,65697848,65695825,65693082,65689917,65685059,65684990,65684222,65673821,65672527,65670399,65668256,65666202,65665656,65665060,65660010,65659089,65658975,65657013,65656794,65656317,65654810,65654034,65653966,65653727,65653290,65653220,65652850,65652815,65652750,65652642,65652446,65652127,65651505,65650837,65650410,65649561,65649461,65649357,65649115,65649065,65648816,65648659,65648630,65648627,65648460,65648315,65647732,65647704,65647673,65647604,65647580,65647576,65647517,65647384,65647295,65647262,65647200,65647138,65647052,65646949,65646853,65646818,65646794,65646762,65646731,65646680,65646519,65646436,65646314,65645457,65645259,65641597,65632145,65631635,65631507,65629720,65627590,65626746,65626714,65626326,65625838,65625741,65625505,65623460,65621955,65621483,65613799,65610669,65610595,65610485,65602187,65601865,65601853,65601775,65601702,65601642,65601223,65600670,65600632,65600391,65597259,65592063,65590991,65590133,65585598,65585125,65584057,65582764,65575416,65575400,65574780,65574615,65574611,65574411,65574360,65574165,65573334,65567263,65565910,65565186,65561042,65559150,65558818,65557147,65553962,65553580,65550240,65548737,65547421,65543903,65543573,65543493,65543432,65542486,65542198,65541337,65541099,65537968,65534483,65533805,65533653,65533433,65532508,65532267,65531982,65531733,65531580,65527370,65526871,65526313,65526272,65524975,65522063,65520539,65512713,65512399,65512261,65511860,65511301,65510707,65510402,65509034,65508941,65508298,65506615,65502769,65499163,65498958,65497621,65495170,65492028,65491156,65490780,65490199,65489985,65489103,65488861,65488501,65487971,65487705,65487373,65486871,65486710,65485758,65484099,65483911,65483736,65482880,65482395,65481938,65481478,65481431,65481180,65480289,65480218,65479755,65479495,65479492,65479230,65479100,65478967,65478601,65478111,65478063,65478028,65477994,65477740,65477713,65477442,65477408,65477188,65477110,65477082,65476927,65476898,65476719,65475889,65475182,65474923,65474772,65474270,65474259,65474206,65473136,65472516,65472514,65472449,65472406,65472243,65472231,65472230,65472204,65472191,65472156,65472141,65472080,65472075,65472065,65472057,65472053,65472040,65472035,65472016,65472008,65471991,65471974,65471973,65471943,65471942,65471927,65471924,65471898,65471800,65471270,65470854,65470592,65470572,65470254,65469915,65467876,65466716,65457496,65456047,65455939,65455302,65455139,65455080,65454709,65451924,65450369,65443724,65442494,65437112,65436056,65434674,65433714,65433464,65433331,65432883,65432856,65430744,65429781,65422946,65419531,65419370,65416802,65415150,65414502,65413572,65412782,65410842,65409260,65407293,65407273,65406825,65405639,65403756,65403576,65403319,65403069,65402976,65400496,65392459,65390368,65388875,65387998,65381588,65379945,65360967,65360281,65358838,65358538,65355097,65353426,65351552,65350442,65349338,65347623,65342117,65341677,65341567,65340772,65340557,65340477,65340292,65340245,65340141,65340088,65340067,65340018,65339202,65339167,65338877,65337535,65336121,65336025,65335516,65335468,65335452,65333148,65332086,65331717,65331038,65330896,65330149,65329803,65329289,65328980,65328838,65327714,650) AND pubdate>1669817197 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6