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 '65819234,65818394,65818215,65818137,65817945,65817386,65817250,65817067,65816...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65847180,65846578,65846442,65846417,65846373,65846351,65846172,65846034,65845823,65845806,65845534,65845479,65845413,65845310,65845101,65845091,65845075,65844955,65844951,65844927,65844886,65844840,65844777,65844642,65844632,65844420,65844133,65844078,65843930,65843761,65843681,65843636,65843528,65843520,65843474,65843391,65843382,65843257,65843223,65843002,65842894,65842871,65842869,65842647,65842636,65842495,65842269,65842171,65842136,65842106,65842043,65841974,65841954,65841857,65841303,65841226,65841024,65840942,65840924,65840922,65840869,65840853,65840744,65840611,65840506,65840499,65840352,65840244,65840050,65840032,65839950,65839937,65839856,65839459,65839443,65839230,65839180,65839176,65839154,65839052,65838951,65838930,65838905,65838871,65838799,65838704,65838698,65838664,65838437,65838405,65838323,65838318,65838232,65838166,65838162,65838150,65838054,65838027,65837927,65837877,65837676,65837520,65837463,65837328,65837319,65837077,65836858,65836785,65834706,65834625,65834575,65834414,65834239,65834086,65834077,65834052,65833845,65833821,65833795,65833408,65833396,65833320,65832760,65832209,65832202,65832196,65831885,65831505,65831397,65831385,65831335,65831154,65830903,65830881,65830855,65830636,65830555,65830438,65830348,65830223,65830204,65830121,65830030,65830003,65829875,65829750,65829494,65829400,65829149,65828698,65828644,65828640,65828604,65828426,65828356,65828310,65828259,65828059,65828050,65827872,65827830,65827569,65827492,65827185,65827169,65827153,65827118,65827056,65826920,65826871,65826867,65826746,65826530,65826462,65826329,65826204,65826192,65826170,65825931,65825882,65825841,65825634,65825460,65825455,65825444,65825228,65825130,65825064,65825032,65824950,65824842,65824783,65824782,65824673,65824597,65824236,65823909,65823795,65823788,65823722,65823678,65823663,65823593,65823549,65823427,65823231,65823226,65823076,65822699,65822633,65821771,65821668,65821440,65821414,65821156,65820660,65820627,65820464,65820462,65820060,65819391,,65819234,65818394,65818215,65818137,65817945,65817386,65817250,65817067,65816855,65816469,65816229,65816150,65816122,65816017,65815640,65815189,65815178,65815104,65814957,65814923,65814810,65814443,65814433,65814363,65814202,65813899,65813827,65813727,65813438,65813320,65813280,65813041,65812381,65812186,65811940,65811874,65811703,65811508,65811469,65811449,65811388,65811376,65811336,65811298,65810844,65810823,65810807,65810715,65810700,65810568,65810555,65810513,65810240,65810197,65810101,65810008,65809838,65809801,65809643,65809399,65809340,65809280,65809201,65808805,65808711,65808525,65808235,65808077,65807612,65807568,65807191,65807120,65806746,65806689,65806650,65806642,65806600,65806460,65806450,65806181,65805710,65805602,65805548,65805382,65805373,65805166,65805149,65805019,65805002,65804997,65804923,65804909,65804836,65804802,65804748,65804512,65804500,65804314,65804251,65804241,65804180,65804101,65804065,65804030,65803876,65803870,65803839,65803779,65803482,65803452,65803397,65803376,65803361,65803354,65803339,65803299,65803298,65803247,65803238,65803222,65803138,65803125,65803108,65803102,65802383,65802241,65802085,65801873,65801833,65801825,65801744,65801518,65801472,65801374,65801173,65801074,65800814,65800728,65800500,65800486,65800303,65800228,65799912,65799898,65799835,65799801,65799647,65799239,65799212,65799206,65799199,65799197,65799187,65798906,65798793,65798693,65798503,65798474,65798102,65797712,65797563,65797546,65796985,65796901,65796622,65796470,65796235,65796211,65796176,65796136,65795902,65795852,65795485,65795479,65795292,65795187,65795126,65795121,65795116,65795071,65795063,65794813,65794635,65794444,65794415,65794245,65794210,65794160,65794065,65794008,65793849,65793805,65793684,65793634,65793617,65793391,65793314,65793310,65793235,65793097,65793033,65792980,65792640,65792611,65792537,65792371,65792303,65791484,65791059,65790869,65790825,65790707,65790576,65790367,65790203,65790195,65790134,65790110,65790017,65789829,65789811,65789745,65789658,650) AND pubdate>1669734351 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6