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 '65819345,65818675,65818626,65818587,65818447,65818422,65818361,65818096,65818...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846549,65846462,65846346,65845677,65845401,65845285,65845234,65845079,65844637,65844568,65844134,65844110,65843894,65843634,65843628,65843543,65843188,65843124,65842535,65842409,65842200,65842023,65841944,65841755,65841740,65841419,65841192,65840980,65840824,65840616,65839959,65839901,65839833,65839751,65839640,65839210,65839006,65837557,65837357,65837183,65837160,65837135,65836972,65836382,65835629,65834577,65833123,65833085,65831773,65831583,65831508,65831281,65831028,65830986,65830526,65830182,65829982,65829653,65829482,65828599,65827357,65826315,65826072,65824584,65824434,65823284,65823217,65822707,65822225,65822124,65821890,65821798,65821578,65821524,65821466,65821438,65821381,65821307,65820563,65820477,65819716,65819557,65819525,65819445,,65819345,65818675,65818626,65818587,65818447,65818422,65818361,65818096,65818068,65817801,65817301,65816654,65816088,65815492,65815310,65814924,65814735,65814555,65814303,65814252,65814073,65813657,65813460,65812311,65811744,65811740,65811032,65809304,65809003,65808489,65808272,65806502,65806389,65806325,65806318,65806084,65805797,65804944,65804825,65804546,65803240,65802961,65802381,65802324,65802258,65801793,65801674,65800891,65800744,65800545,65800483,65800283,65800212,65800186,65799572,65799505,65799382,65799039,65798588,65798189,65797608,65797056,65796962,65795770,65794922,65794917,65794454,65794453,65794346,65794222,65794018,65793976,65792855,65792456,65792269,65791864,65791718,65791565,65790568,65790079,65789317,65788855,65788572,65788380,65788340,65788038,65788004,65788007,65787989,65787988,65787829,65787730,65787107,65787049,65786862,65786551,65785970,65785415,65785358,65785224,65783728,65783620,65783249,65783021,65782523,65782521,65782520,65782497,65781427,65781210,65781046,65780493,65780423,65780008,65779903,65779833,65779562,65779506,65779286,65779212,65779151,65778129,65778122,65778036,65777734,65777548,65776891,65776622,65776437,65776420,65776298,65775262,65775176,65775134,65774992,65774736,65774730,65774217,65774105,65773863,65773580,65772573,65772516,65772291,65772203,65772112,65771423,65771418,65771164,65771129,65770811,65770529,65770516,65770292,65770207,65770151,65770065,65769914,65769837,65769832,65769770,65769398,65769295,65769278,65769150,65769060,65769027,65769007,65768890,65768866,65768859,65768830,65768811,65768723,65768625,65767751,65767524,65767325,65766793,65766760,65766716,65766497,65766394,65766300,65766247,65766043,65765862,65765492,65765488,65765285,65765245,65765050,65765002,65764638,65764631,65764477,65764347,65764337,65764205,65764012,65763789,65763776,65762954,65762860,65762677,65762208,65762041,65761971,65761726,65761522,65761521,65761318,65761277,65761178,65761098,65761080,65761067,65760909,65760858,65760630,65760253,65760055,65759616,65758844,65758236,65758139,65757653,65757495,65757223,65757122,65756591,65756388,65756003,65755445,65753903,65753379,65753372,65753344,65753188,65752973,65752788,65752531,65752157,65751153,65751041,65750924,65750821,65750353,65749388,65749334,65748828,65748261,65747730,65747218,65746540,65746290,65746020,65745787,65745612,65745577,65745513,65745456,65745240,65745155,65744903,65744746,65744699,65744040,65744002,65743864,65743610,65743536,65743166,65742963,65742797,65742692,65742365,65742356,65742283,65742242,65742208,65741947,65741828,65741778,65741749,65741660,65741655,65741534,65741475,65741456,65741342,65741152,65741038,65740696,65740358,65740051,65740006,65739759,65739739,65739736,65739632,65739563,65739261,65739251,65739246,65738983,65738872,65738449,65738325,65738291,65738224,65737785,65737267,65737264,65736296,65736204,65736032,65736035,65735983,65735895,65735654,65735471,65735439,65734709,65734265,65733889,65733468,65733385,65733354,65733153,65732510,65732491,65732202,65732192,65731764,65731265,65731260,65730871,65730623,65730584,65730560,65730449,65729879,65728944,65727979,65727977,65727287,65727150,65726984,65726093,65725070,65724716,65724611,65724526,65723762,65723722,65723577,65722965,65722150,65721529,650) AND pubdate>1669731170 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6