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 '65819232,65819159,65819098,65819044,65818966,65818903,65818852,65818835,65818...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65858754,65858487,65858448,65858278,65858142,65858120,65857710,65857586,65857566,65857561,65857372,65857219,65857203,65856952,65856875,65856450,65856389,65856361,65856269,65856164,65856085,65856059,65855878,65855781,65855620,65855586,65855400,65855267,65855188,65855176,65855107,65854996,65854879,65854850,65854831,65854756,65854698,65854683,65854640,65854494,65854325,65854255,65854199,65854119,65854089,65854023,65854013,65853902,65853787,65853614,65853366,65853306,65853225,65853075,65852907,65852706,65852647,65852644,65852608,65852439,65852417,65852363,65852338,65852315,65852275,65852243,65852107,65852042,65852017,65851943,65851898,65851766,65851527,65851500,65851469,65851426,65851268,65851224,65851217,65851143,65851106,65851002,65850963,65850792,65850734,65850683,65850641,65850174,65849745,65849618,65849043,65849009,65848412,65848079,65847976,65847974,65847893,65847856,65847618,65847466,65847017,65847004,65846854,65846851,65846807,65846758,65846707,65846356,65846350,65846187,65846159,65846139,65846138,65845984,65845933,65845875,65845843,65845649,65845608,65845582,65845366,65845333,65845315,65845227,65844920,65844839,65844821,65844541,65844187,65844179,65844142,65844068,65843974,65843960,65843781,65843764,65843660,65843603,65843562,65843526,65843449,65843368,65843231,65843172,65843132,65843040,65843027,65842942,65842906,65842859,65842815,65842806,65842756,65842721,65842716,65842688,65842580,65842305,65842283,65842164,65842013,65841660,65841606,65841302,65841200,65840839,65839922,65839915,65839673,65839632,65839586,65839333,65839316,65839234,65839122,65839118,65839074,65839034,65838903,65838763,65838729,65838683,65838627,65838617,65838571,65838523,65838483,65838451,65838376,65838359,65838336,65838198,65838147,65838092,65838058,65838057,65838035,65837959,65837956,65837621,65837553,65837503,65837483,65837452,65837408,65837384,65837340,65837322,65837295,65837062,65836736,65835268,65835192,65835073,65834903,65834865,65834373,65834026,65833976,65833835,65833700,65833519,65833245,65833083,65832962,65832751,65832589,65832435,65832355,65832345,65832315,65832297,65832183,65831967,65831791,65831789,65831788,65831771,65831744,65831703,65831698,65831522,65831482,65831346,65831321,65831264,65831104,65831101,65831007,65831002,65830998,65830968,65830962,65830711,65830665,65830618,65830518,65830470,65830434,65830422,65830402,65830378,65830371,65830369,65830357,65830241,65830160,65830139,65830056,65829942,65829934,65829903,65829719,65829702,65829642,65829626,65829612,65829559,65829405,65829386,65829171,65829162,65829153,65829137,65829108,65829037,65829026,65828989,65828931,65828755,65828752,65828349,65828203,65828164,65828067,65827954,65827851,65827711,65827507,65827438,65827017,65827013,65827009,65826939,65826829,65826792,65826711,65826549,65826475,65826381,65826300,65826299,65826114,65825997,65825904,65825737,65825668,65825463,65825299,65825206,65825132,65824779,65824753,65824450,65824387,65824368,65824177,65824016,65823982,65823961,65823919,65823892,65823884,65823863,65823803,65823775,65823774,65823573,65823397,65823369,65823090,65822937,65821975,65821853,65821328,65821002,65820951,65820734,65820645,65820405,65820377,65820327,65820081,65819985,65819924,65819898,65819827,65819698,65819553,65819544,,65819232,65819159,65819098,65819044,65818966,65818903,65818852,65818835,65818772,65818430,65818428,65818389,65818295,65818278,65818199,65818196,65818185,65818110,65817909,65817715,65817636,65817633,65817605,65817582,65817503,65817498,65817496,65817490,65817448,65817378,65817353,65817324,65817205,65817161,65817133,65817114,65817049,65816866,65816823,65816815,65816807,65816801,65816709,65816584,65816578,65816476,65816459,65816431,65816402,65816388,65816349,65816161,65816149,65816090,65816056,65816021,65815940,65815887,65815822,65815712,65815601,65815495,65815490,65815445,65815443,65815438,65815408,65815355,65815255,65815201,65815163,65815160,65815145,65815077,65815058,65814979,65814665,65814435,65814308,65814275,65814164,65813952,65813853,65813612,650) AND pubdate>1669840516 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6