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 '65819235,65819225,65818784,65818417,65818274,65817839,65817376,65817374,65816...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846227,65845732,65845398,65845300,65844969,65844963,65844841,65844444,65843884,65843706,65843212,65842744,65841717,65840675,65840473,65840087,65839832,65839015,65838743,65838564,65838113,65837847,65837437,65837391,65836949,65836758,65836728,65836461,65835272,65834054,65833817,65833799,65833283,65833187,65833181,65833152,65833114,65833047,65832784,65832173,65831241,65831066,65830037,65829533,65829128,65828660,65828260,65827337,65826111,65825621,65825620,65824899,65824159,65824114,65823840,65823713,65823643,65823465,65823442,65823400,65823213,65823179,65822955,65822920,65822692,65822205,65821325,65820615,65820062,65819968,,65819235,65819225,65818784,65818417,65818274,65817839,65817376,65817374,65816054,65816033,65814859,65814245,65814180,65813009,65812806,65812497,65812485,65811878,65811814,65811682,65811408,65811235,65811133,65810876,65810839,65810743,65810613,65810465,65810046,65809538,65809415,65809390,65808819,65806427,65806121,65805838,65805236,65804967,65804560,65804423,65804419,65803836,65803745,65803667,65803571,65803113,65802970,65802456,65802428,65802250,65801660,65801546,65800433,65800390,65800359,65799800,65799429,65799193,65798158,65797625,65797356,65797037,65796752,65796466,65796422,65796269,65796267,65795934,65794772,65794433,65794207,65793587,65792627,65791389,65791141,65791137,65791019,65790539,65789178,65788557,65787607,65787601,65787503,65787125,65787015,65786772,65786413,65783436,65783198,65781932,65781690,65778444,65774972,65774374,65774150,65773850,65773378,65772461,65770994,65770112,65769669,65768841,65768711,65768548,65768546,65768102,65768084,65767999,65767868,65767776,65767708,65767119,65767118,65767018,65766813,65766288,65766078,65764916,65764811,65764740,65764594,65764075,65763715,65763481,65763185,65762845,65762784,65762616,65761518,65761511,65761468,65760817,65759884,65759468,65759278,65758900,65758709,65758478,65755813,65754838,65754132,65753872,65753788,65753048,65752318,65751887,65750621,65750441,65750377,65749738,65749724,65749540,65749419,65749288,65749239,65748858,65748782,65747122,65746107,65744315,65742925,65741438,65740026,65738032,65737036,65737031,65736222,65735651,65735215,65734196,65734194,65733507,65733430,65733347,65732868,65732270,65727982,65727045,65726672,65726179,65725941,65725907,65725576,65725345,65725069,65724914,65724536,65724534,65724517,65724181,65723829,65723597,65723417,65723353,65722927,65722920,65721683,65720086,65720034,65719811,65719619,65719552,65718597,65718588,65718543,65718381,65717995,65717953,65715469,65715198,65714678,65714201,65713222,65712714,65712526,65710597,65709416,65708370,65708367,65708004,65705888,65705859,65705737,65705652,65705243,65705001,65704484,65701473,65697905,65697291,65696853,65695881,65695772,65695528,65695127,65695120,65695061,65693668,65692981,65692853,65692735,65692666,65692618,65692046,65691324,65691160,65691117,65690909,65690244,65690147,65689801,65689748,65689649,65689486,65689443,65689350,65689337,65689188,65689120,65686562,65684923,65684644,65684462,65684060,65683964,65682562,65682045,65681807,65681359,65681141,65680729,65680443,65679845,65678960,65678644,65676583,65674784,65674711,65674348,65673945,65673686,65673215,65673170,65672456,65672231,65672098,65672075,65670956,65668957,65668002,65667490,65667463,65667395,65666893,65666644,65666462,65666273,65665734,65665685,65665632,65665549,65664329,65663095,65662955,65662597,65662150,65662119,65661497,65661482,65660801,65660149,65660104,65660000,65659806,65659660,65659452,65659359,65659265,65658660,65657646,65657252,65656936,65656844,65656037,65655501,65655319,65655259,65655233,65652946,65652214,65651098,65651017,65649676,65649435,65649318,65649156,65648079,65647432,65647353,65647337,65646852,65646801,65646800,65646648,65646056,65646046,65645913,65645716,65645384,65644769,65644520,65644319,65643540,65643496,65642695,65642587,65642483,65641953,65641906,65641801,65637338,65636431,65635342,65635335,65634718,65634557,65633849,65633809,65633189,65633068,65632551,65632209,65631119,65631103,650) AND pubdate>1669732463 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6