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 '65818682,65817900,65817882,65817869,65817691,65817429,65816960,65816853,65816...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846072,65845101,65845091,65844704,65844573,65843725,65843297,65843293,65841583,65841487,65841338,65836191,65835378,65835347,65835325,65835274,65835177,65835164,65835107,65833506,65833319,65833290,65832523,65832208,65832079,65831944,65830420,65829749,65828493,65827833,65827760,65827020,65826340,65825352,65824229,65824113,65823855,65823617,65821805,65820752,65820354,65820112,,65818682,65817900,65817882,65817869,65817691,65817429,65816960,65816853,65816712,65816703,65816180,65815790,65815221,65814757,65813460,65813319,65812499,65812473,65812447,65811803,65811426,65810915,65809697,65809303,65808847,65808387,65807590,65806130,65804982,65803870,65803847,65803248,65803206,65802551,65801525,65801330,65800691,65800486,65800228,65800196,65800193,65799884,65798199,65797712,65797052,65792792,65791109,65790716,65789067,65785779,65784697,65784310,65784221,65784174,65784064,65783996,65783723,65783635,65783616,65780436,65777066,65776873,65776654,65776231,65775598,65774745,65772779,65772470,65771770,65769680,65769514,65769424,65769366,65768975,65768798,65768625,65765887,65765419,65765364,65765202,65765151,65765053,65764978,65764631,65764630,65764538,65764477,65764206,65763454,65763401,65762637,65762424,65762400,65762055,65761982,65761920,65761861,65761765,65761651,65759627,65759571,65759324,65758845,65758307,65758071,65758043,65757870,65757250,65757137,65757058,65756624,65756622,65756001,65755840,65755622,65755507,65755213,65755188,65753665,65753475,65753453,65753364,65752806,65752491,65751838,65751594,65751562,65751348,65751255,65751150,65750738,65750201,65749034,65746797,65746649,65746134,65745233,65744433,65744412,65744105,65743850,65743534,65743078,65742678,65742264,65741777,65741619,65741587,65741553,65741241,65741169,65740781,65740570,65740308,65740299,65740291,65739666,65739356,65739191,65738823,65738552,65738252,65737878,65737436,65737324,65736803,65736700,65736687,65735201,65732284,65731251,65730628,65730407,65729834,65729811,65729061,65726610,65724963,65724951,65724731,65724342,65723595,65723438,65721931,65721171,65720238,65720210,65719398,65718810,65717578,65717032,65716518,65716283,65715263,65714798,65714414,65713966,65713421,65713410,65713302,65713174,65712380,65712022,65710536,65709767,65709484,65709454,65709205,65708647,65708241,65708019,65707548,65707062,65706681,65705694,65701497,65701458,65701110,65700789,65700314,65700012,65699917,65699030,65698747,65698529,65697913,65697199,65696650,65696322,65696193,65695986,65694904,65694558,65693679,65693465,65693096,65692533,65691955,65690658,65690539,65687997,65686262,65685776,65685194,65685082,65684377,65681855,65681772,65681720,65681402,65681054,65681046,65680353,65680097,65675721,65674492,65673683,65669679,65668836,65666746,65666672,65666415,65665694,65665667,65665535,65665333,65665292,65665067,65664372,65664368,65662816,65662258,65660558,65659762,65658859,65658420,65658253,65658209,65655598,65654870,65654220,65653394,65653327,65652952,65652884,65652726,65652570,65652301,65652044,65651960,65651790,65651110,65650878,65650555,65649858,65649672,65649244,65649118,65648701,65648635,65648480,65648305,65648301,65648113,65647877,65647752,65647037,65646916,65646360,65645758,65644955,65643748,65643431,65642923,65642793,65642209,65640881,65640031,65640020,65639583,65637767,65635960,65634923,65633296,65633285,65632903,65632883,65632827,65632367,65632301,65632254,65631932,65631529,65630956,65630845,65630581,65630447,65630112,65629885,65629527,65629264,65629250,65629135,65627595,65627249,65627163,65625750,65623934,65623674,65622994,65622770,65622678,65622181,65621171,65620797,65620411,65620174,65618840,65618762,65617732,65617598,65616641,65616535,65616360,65616173,65615983,65615554,65615458,65615373,65615030,65614863,65614838,65614758,65614503,65614374,65613214,65613041,65612488,65611822,65611627,65611461,65611373,65611299,65611269,65610885,65610877,65610863,65610842,65610736,65610403,65609476,65609468,65609402,65609246,65608930,65608913,65608595,65608010,65607979,65607560,65607318,65607240,650) AND pubdate>1669732345 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6