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 '65818099,65817468,65817211,65816302,65816124,65815586,65814973,65814415,65812...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65845607,65843257,65842396,65842111,65842082,65840708,65840031,65838173,65837297,65835250,65831693,65830208,65829882,65829822,65827985,65827880,65826910,65826843,65826801,65826713,65826658,65826381,65825930,65825668,65825638,65825571,65823868,,65818099,65817468,65817211,65816302,65816124,65815586,65814973,65814415,65812035,65811916,65811000,65810676,65810039,65809927,65809603,65809352,65809249,65808945,65807953,65807216,65806932,65802836,65802755,65802212,65801560,65800435,65800145,65797265,65792750,65792067,65791841,65791679,65791331,65788541,65787336,65787286,65787206,65786714,65786707,65786678,65786478,65786283,65786178,65785349,65784166,65783671,65777352,65776113,65766577,65765447,65765198,65765175,65764556,65763574,65763332,65762883,65762812,65762761,65762014,65761641,65759363,65758983,65757956,65755970,65755767,65754572,65754258,65753791,65753484,65753266,65752873,65752470,65752337,65751648,65750341,65749226,65748540,65748463,65747210,65746725,65744019,65738280,65736749,65735321,65728947,65728208,65726777,65723840,65721909,65715304,65714197,65714091,65713710,65709145,65703598,65701745,65698294,65698164,65698042,65696176,65695027,65694566,65694284,65692600,65692289,65691675,65689536,65688363,65686745,65685172,65682455,65682159,65680364,65680210,65680099,65679231,65677863,65677733,65673435,65671995,65669054,65666040,65665843,65662609,65661976,65660710,65660127,65658257,65657702,65657489,65654893,65654470,65653907,65653401,65652919,65652756,65652621,65651823,65651580,65651166,65649395,65648282,65646709,65645768,65645375,65644975,65644684,65643504,65642890,65642414,65641964,65641321,65638890,65638581,65638068,65636247,65635686,65635433,65635375,65634793,65634600,65634520,65634494,65634464,65633701,65633647,65632347,65631547,65631250,65631206,65631015,65630719,65630531,65629977,65629560,65629506,65629369,65629301,65629275,65625822,65622568,65622294,65621961,65621959,65621773,65619663,65618919,65618803,65617370,65616570,65613582,65611939,65608865,65608162,65607088,65606921,65605578,65604627,65602987,65601869,65599713,65599375,65599190,65596255,65595948,65591791,65589498,65587639,65586394,65585257,65585041,65584421,65581994,65581914,65581197,65579696,65578153,65578017,65577792,65577240,65576872,65575069,65573693,65572608,65571283,65568958,65568734,65568028,65567118,65564888,65564696,65563626,65562428,65561410,65560837,65560376,65560346,65560255,65560208,65560194,65559894,65559721,65556459,65553774,65553030,65551717,65551097,65550517,65549911,65549552,65549378,65549263,65549217,65549125,65548353,65547044,65545434,65545182,65544844,65544432,65544126,65539786,65539640,65538613,65533356,65532878,65530182,65529619,65529516,65529480,65528154,65527394,65526382,65524297,65520419,65516833,65515877,65507091,65506737,65505307,65504183,65504074,65503032,65502751,65502189,65502100,65501220,65500303,65499997,65498131,65497576,65497503,65497460,65497294,65495962,65493582,65492886,65491750,65491710,65491626,65491491,65491226,65490792,65490616,65486848,65484461,65483076,65483052,65479867,65479771,65477208,65474778,65472110,65468985,65468363,65467458,65467082,65466941,65466357,65466263,65466129,65465974,65465835,65460663,65459628,65459443,65458769,65456400,65454119,65453825,65450871,65450343,65448468,65446589,65445772,65444055,65443814,65442841,65440616,65439101,65436949,65436692,65436630,65436489,65435245,65434152,65427023,65425882,65425105,65425047,65424193,65423296,65421077,65418619,65418477,65418252,65418035,65417965,65417844,65417583,65416784,65416507,65413757,65413660,65413370,65413246,65412292,65411600,65411451,65411398,65410447,65409939,65408406,65407483,65407087,65406714,65405019,65403860,65403042,65400255,65398618,65397803,65397641,65397208,65395527,65394767,65394700,65392277,65390594,65390557,65390362,65389169,65388966,65388846,65388541,65388323,65384325,65383869,65382959,65381122,65380930,65379660,65377976,65377499,65376824,65376478,65373492,65371989,65371108,65370388,65369425,65368405,65364407,65363027,65362428,65359441,65358012,650) AND pubdate>1669734182 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6