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 '65819358,65819260,65818616,65818534,65818421,65818412,65818189,65818184,65818...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846937,65846912,65846903,65846820,65846752,65846695,65846555,65846554,65846440,65846393,65846103,65845962,65845924,65845833,65845781,65845761,65845574,65845451,65844879,65844757,65844727,65844630,65844273,65844147,65843696,65843692,65843661,65843531,65843383,65843234,65843223,65842953,65842565,65842496,65842317,65842221,65842066,65841793,65841607,65841402,65841389,65840009,65839986,65839745,65839505,65839316,65838763,65838627,65838573,65838446,65837843,65837841,65837823,65837820,65837500,65837454,65837432,65837413,65837412,65837393,65837380,65837379,65837378,65837346,65837345,65836909,65836896,65836818,65836803,65836723,65836672,65836664,65836577,65836561,65836512,65836503,65836437,65836291,65836221,65836219,65836065,65836052,65836050,65835971,65835885,65835881,65835864,65835847,65835818,65835808,65835751,65835743,65835715,65835713,65835690,65835675,65835663,65835662,65835635,65835622,65835586,65835561,65835552,65835541,65835536,65835518,65835517,65835494,65835453,65835420,65835206,65835184,65835156,65835115,65835103,65835013,65834999,65834784,65834759,65834610,65834530,65834378,65834170,65834070,65834026,65833999,65833974,65833478,65833440,65833337,65833274,65833096,65833046,65833032,65832929,65832916,65832836,65832538,65832379,65832161,65832087,65831986,65831860,65831813,65831703,65831630,65831561,65831482,65831474,65831418,65831340,65831210,65831043,65831036,65830934,65830863,65830773,65830770,65830719,65830629,65830541,65830487,65830414,65830248,65830025,65830002,65829049,65829013,65828754,65828475,65827862,65827826,65827430,65826577,65826517,65826429,65826394,65826293,65826000,65825965,65825960,65825869,65825862,65825569,65825499,65825237,65825135,65824805,65824596,65823892,65823715,65823714,65823646,65823645,65823584,65823583,65823582,65823521,65823419,65822936,65822867,65822727,65822574,65822554,65822518,65822434,65822023,65821942,65821355,65821322,65821285,65821129,65821100,65821026,65820867,65820774,65820718,65820697,65820685,65820656,65820636,65820614,65820296,65820155,65820055,65820032,65819956,65819893,65819725,65819670,,65819358,65819260,65818616,65818534,65818421,65818412,65818189,65818184,65818129,65817973,65817732,65816879,65816541,65816117,65816063,65815975,65815898,65815567,65815456,65815108,65814616,65814547,65814534,65814276,65814265,65814253,65814119,65814060,65813722,65813606,65813527,65813350,65813348,65813337,65813202,65813069,65812887,65812880,65812864,65812594,65812221,65811628,65811612,65811499,65811176,65810606,65810343,65810314,65810255,65809934,65809904,65809880,65809879,65809828,65809827,65809783,65809782,65809781,65809675,65809534,65808902,65808855,65808783,65808669,65808623,65808610,65808251,65808133,65808096,65808075,65807899,65807816,65807764,65807660,65807608,65807465,65807363,65807354,65807314,65807082,65806854,65806399,65806046,65805724,65805716,65805525,65804872,65804804,65804539,65804344,65804026,65804025,65803940,65803829,65803815,65803808,65803548,65803513,65803363,65803199,65803117,65802691,65802675,65802362,65802165,65801844,65801492,65801489,65801444,65801443,65801125,65801034,65800463,65800362,65800222,65800142,65800113,65800062,65800053,65800049,65799970,65799960,65799710,65799668,65799591,65799072,65798898,65798015,65798001,65797442,65797314,65797108,65797093,65796681,65796626,65796550,65796485,65796467,65796460,65796421,65796379,65796378,65796377,65796376,65796375,65796374,65796373,65796220,65795985,65795867,65795784,65795690,65795533,65795531,65795460,65795454,65795087,65795075,65794810,65794641,65794598,65794386,65794127,65794124,65794109,65794092,65793810,65793691,65793667,65793408,65793176,65793082,65792967,65792940,65792897,65792710,65792526,65792385,65792330,65792320,65792077,65791902,65791548,65791409,65791393,65791390,65791100,65791090,65791027,65791003,65790985,65790945,65790906,65790893,65790705,65790538,65790524,65790116,65789878,65789617,65789273,65789140,65789043,65788655,65788547,65788329,65788252,65788142,65788064,65787814,65787768,65787664,65787602,65787523,650) AND pubdate>1669733157 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6