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 '65819278,65818768,65818313,65818055,65817585,65817101,65817037,65816544,65814...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846187,65845447,65845077,65843040,65835648,65835197,65835057,65834258,65834137,65833850,65833318,65833190,65833153,65833082,65833078,65832974,65832953,65832814,65832383,65832212,65831596,65830531,65829482,65829196,65828949,65828855,65828534,65828138,65827964,65827550,65827437,65827368,65827336,65826779,65826575,65826346,65826294,65825815,65825643,65825589,65825548,65823685,65823275,65822370,65821213,65821119,65821015,65820758,65820729,65820440,65820143,65819757,65819610,65819544,,65819278,65818768,65818313,65818055,65817585,65817101,65817037,65816544,65814935,65814570,65812890,65811915,65811756,65811425,65811418,65810928,65810369,65810213,65809300,65809040,65808875,65808744,65808153,65807729,65807672,65807490,65807184,65807074,65806933,65806883,65806801,65806764,65806683,65806580,65806562,65806206,65806161,65805914,65805747,65805351,65804578,65798350,65797735,65796610,65796520,65796386,65796257,65796094,65795837,65794961,65794601,65792913,65792865,65792537,65791994,65789399,65787440,65785765,65784871,65784849,65784638,65784466,65784381,65784307,65784169,65784036,65783999,65783989,65783965,65783806,65783407,65783375,65782583,65782500,65782480,65782177,65782148,65782108,65781957,65781920,65781531,65778633,65777205,65776858,65776592,65776467,65775670,65774893,65774815,65774668,65774548,65773503,65772905,65771774,65771747,65771512,65771186,65771063,65771047,65769807,65769677,65769651,65769186,65767186,65767131,65765895,65764954,65764171,65760797,65760642,65760624,65760271,65760053,65758797,65757232,65756842,65756746,65755743,65753671,65753581,65752292,65752067,65751960,65751855,65751745,65751151,65750481,65750056,65749487,65749440,65749214,65748561,65748085,65748075,65747787,65747725,65747543,65745264,65744914,65744901,65744626,65742596,65742252,65740795,65740406,65739174,65738186,65738107,65736317,65733181,65730931,65729597,65728647,65728008,65727991,65727488,65726751,65726561,65726107,65725803,65725775,65725749,65725696,65725619,65725414,65725301,65725259,65725239,65725223,65725082,65725033,65724921,65724835,65724740,65724630,65724579,65723551,65722925,65717155,65716267,65714515,65713057,65713002,65712886,65711945,65710940,65710936,65709885,65709844,65708170,65707940,65707861,65707672,65707164,65706381,65705767,65703989,65703063,65703033,65702693,65702135,65700512,65700391,65700210,65700114,65699422,65699316,65699218,65698932,65698001,65697618,65696551,65696063,65695657,65695464,65694444,65690714,65689906,65689688,65689473,65689459,65689175,65688402,65687577,65685157,65683135,65682440,65682380,65682258,65682256,65682232,65681774,65681573,65681449,65681405,65680822,65677205,65675902,65675742,65675004,65674521,65673701,65671741,65671235,65670948,65669308,65669288,65669060,65667636,65666481,65665796,65663159,65662971,65662800,65660906,65660674,65659275,65659274,65659032,65658679,65658441,65658385,65657973,65657918,65657766,65657700,65656817,65656788,65656629,65656603,65656368,65656304,65655123,65653648,65653286,65653119,65652898,65650884,65650864,65650039,65649349,65648954,65648270,65647762,65647274,65646504,65644143,65643209,65642958,65642025,65641853,65641465,65641281,65641225,65638782,65638032,65636683,65635750,65635129,65633619,65632471,65631463,65631275,65630663,65630418,65630219,65630098,65629987,65629914,65629888,65629832,65629677,65629580,65629331,65629294,65629258,65629007,65628990,65628975,65628926,65628918,65628911,65628909,65628900,65628897,65628868,65628848,65628817,65628812,65628765,65628690,65628659,65628481,65628158,65627268,65627262,65625658,65624299,65622118,65620375,65620326,65620259,65620231,65620071,65619726,65618962,65618846,65616533,65616488,65616464,65615947,65614540,65614506,65614505,65614484,65614040,65613615,65613471,65613469,65613406,65613123,65613110,65613062,65612656,65612555,65612482,65612120,65611903,65611665,65610697,65610316,65610294,65610199,65609297,65609190,65609045,65609018,65608134,65608089,65607976,65607852,65607145,65606931,65606340,65606039,65605816,65605699,65605572,65605058,65597910,650) AND pubdate>1669732968 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6