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 '65819175,65819134,65819021,65818975,65818654,65818618,65818572,65818553,65818...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846466,65846288,65846224,65846218,65845851,65845714,65845632,65845628,65845439,65845359,65845185,65845067,65844822,65844816,65844739,65844733,65844668,65844627,65844593,65844588,65844171,65844093,65843294,65843291,65843282,65843102,65843029,65842981,65842876,65842855,65842778,65842537,65842195,65842156,65842030,65841818,65841815,65841705,65841696,65841487,65841456,65841455,65841417,65841165,65841138,65840971,65840931,65840853,65840666,65840585,65840408,65840001,65839961,65839943,65839859,65839809,65839790,65839541,65839524,65839510,65839409,65839383,65839307,65839133,65838944,65838829,65838754,65838459,65838253,65838247,65838246,65838244,65838242,65838169,65838167,65838166,65838164,65838163,65838162,65838105,65838024,65837826,65837699,65837354,65837070,65837021,65837003,65836906,65836870,65836036,65835962,65835931,65835643,65835623,65835571,65835433,65835373,65835262,65834370,65834136,65834110,65834088,65833968,65833899,65833814,65833803,65833771,65833667,65833458,65833387,65833078,65833025,65832974,65832883,65832810,65832789,65832727,65832496,65832469,65832412,65832275,65831970,65831877,65831633,65831471,65831453,65831372,65831094,65831015,65831011,65830827,65830680,65830608,65830606,65830588,65830540,65830517,65830510,65830382,65830302,65829892,65829851,65829699,65829637,65829634,65829632,65829544,65829523,65829153,65828995,65828924,65828917,65828902,65828816,65828792,65828665,65828558,65828541,65828437,65828365,65828306,65828114,65828080,65828079,65828028,65827977,65827975,65827968,65827964,65827909,65827802,65827754,65827683,65827663,65827514,65827451,65827383,65827050,65826974,65826965,65826902,65826804,65826668,65826552,65826483,65826085,65826016,65825989,65825853,65825830,65825802,65825791,65825434,65825092,65825086,65824949,65824939,65824911,65824744,65824743,65824543,65824417,65824344,65824217,65824186,65823965,65823709,65823574,65823562,65823515,65823514,65823512,65823472,65823392,65823339,65823277,65823272,65823236,65823218,65822747,65822711,65822690,65822654,65822601,65822578,65822512,65822104,65822032,65821975,65821933,65821848,65821847,65821713,65821694,65821550,65821548,65821532,65821464,65821265,65821131,65821108,65820830,65820725,65820625,65820607,65820570,65820419,65820407,65820383,65820139,65819997,65819982,65819876,65819867,65819660,65819655,65819486,65819426,,65819175,65819134,65819021,65818975,65818654,65818618,65818572,65818553,65818537,65818519,65818486,65818403,65818340,65818308,65818294,65818157,65818105,65818095,65817852,65817800,65817793,65817484,65817477,65817473,65817472,65817433,65817403,65817381,65817350,65817276,65817245,65817200,65817181,65817174,65817171,65817153,65817145,65817144,65817141,65817082,65817058,65817036,65817007,65816972,65816924,65816890,65816763,65816527,65816522,65816516,65816255,65816206,65816139,65815954,65815923,65815811,65815778,65815719,65815522,65815237,65815159,65815138,65814846,65814755,65814622,65814620,65814597,65814500,65814426,65814328,65814326,65814322,65814056,65814043,65814040,65814038,65813421,65813183,65813181,65813094,65813007,65812818,65812812,65812810,65812808,65812707,65812521,65812416,65812414,65812364,65812320,65812319,65812306,65812004,65811881,65811772,65811705,65811480,65811370,65811306,65811212,65810943,65810668,65810559,65810329,65810228,65809970,65809809,65809751,65809666,65809663,65809602,65809525,65809472,65809471,65809418,65809269,65809209,65809194,65809153,65809140,65809136,65809122,65809076,65808985,65808775,65808683,65808624,65808499,65808344,65808067,65807928,65807850,65807766,65807747,65807730,65807685,65807577,65807524,65807433,65807360,65807359,65807173,65806857,65806742,65806676,65806673,65806670,65806551,65806365,65806255,65806107,65806005,65805993,65805891,65805790,65805779,65805770,65805571,65805515,65805489,65805411,65804896,65804848,65804765,65804648,65804646,65804645,65804644,65804641,65804503,65804486,65804481,65804480,65804402,65804324,65804240,65804154,65804144,65804106,65803955,65803819,65803806,65803716,65803683,65803579,650) AND pubdate>1669730542 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6