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 '65819219,65819187,65818767,65818639,65818583,65818446,65818087,65818086,65817...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846802,65846381,65846352,65845998,65845735,65845229,65844960,65844793,65844678,65844511,65844251,65844183,65843697,65843620,65842747,65842318,65840742,65840412,65839893,65839563,65839351,65839317,65839004,65838927,65838892,65838664,65838303,65838157,65837754,65837707,65837436,65837435,65837333,65836895,65836457,65836433,65836091,65836064,65836001,65835391,65835347,65835260,65835006,65834701,65834678,65834404,65834328,65834222,65833925,65833923,65833890,65833714,65832536,65832174,65831238,65831177,65829987,65829250,65829207,65829018,65828620,65828334,65827442,65826599,65825897,65825766,65824942,65823986,65823404,65823376,65823265,65823123,65823106,65823001,65822909,65822418,65822155,65822030,65821859,65821417,65821191,65820736,65820603,65820376,65820195,65820085,65820011,65819676,65819550,65819502,,65819219,65819187,65818767,65818639,65818583,65818446,65818087,65818086,65817983,65817902,65817838,65817529,65817462,65817377,65817163,65816061,65815500,65814425,65814307,65814123,65813412,65813278,65812796,65812682,65812618,65812575,65812438,65812046,65810299,65810274,65810142,65809414,65809110,65809082,65808965,65808640,65808291,65808024,65807966,65807814,65807770,65807730,65807718,65807685,65807686,65807673,65807475,65807396,65807323,65806733,65806701,65806243,65805571,65805412,65804798,65804091,65803870,65803618,65803579,65803389,65803363,65803282,65803163,65803118,65803115,65803091,65803081,65802957,65802766,65802659,65802644,65802599,65802590,65802538,65802476,65802015,65801636,65801007,65800340,65800065,65799685,65799433,65798936,65798246,65798119,65797467,65797052,65797049,65796619,65796251,65795559,65795112,65795049,65795005,65794457,65794216,65794172,65794125,65793999,65793874,65793754,65793639,65793455,65793387,65793136,65793069,65792970,65792646,65792393,65792324,65791722,65791451,65791265,65791002,65790599,65790548,65789752,65789732,65789556,65789509,65788954,65788926,65788924,65788842,65788762,65788584,65788108,65788079,65786186,65786094,65785472,65785413,65785383,65784775,65784530,65784229,65783286,65783256,65782519,65782299,65782289,65782110,65782060,65781675,65781516,65781497,65781455,65781192,65780991,65779885,65779120,65778577,65778575,65778574,65778091,65777720,65777616,65777522,65777216,65777215,65777133,65776748,65776531,65775920,65775796,65775677,65775675,65775582,65775243,65774937,65774877,65774362,65773753,65773353,65773345,65773344,65773264,65772820,65772732,65772725,65772693,65772528,65772489,65771925,65771906,65771771,65771684,65771486,65770542,65769914,65769770,65769088,65768989,65768911,65768838,65768561,65768285,65767669,65767648,65767324,65767218,65766831,65765860,65765711,65765342,65765237,65764952,65764851,65764538,65764372,65764231,65763069,65762814,65762659,65762629,65762021,65761741,65761554,65761504,65761237,65761090,65760957,65760911,65760863,65760445,65758006,65757788,65755984,65755409,65754041,65753717,65753207,65753038,65752859,65752231,65751672,65751344,65751219,65750459,65750368,65749092,65748714,65748280,65748244,65748169,65747660,65747561,65747468,65747151,65746796,65744819,65743462,65742933,65742806,65742720,65742589,65742465,65742326,65742010,65741953,65741612,65740262,65740040,65739843,65739702,65739278,65738485,65737667,65737463,65736929,65735492,65735442,65735303,65735091,65734901,65733988,65733978,65733594,65733253,65731722,65731665,65731628,65731470,65731220,65731177,65731109,65731056,65731055,65730760,65730634,65730573,65730482,65730443,65730113,65729935,65729446,65729306,65729219,65728889,65728639,65728622,65728578,65728052,65727723,65727559,65726825,65726724,65726127,65724626,65723993,65723877,65723661,65723321,65723238,65722816,65722700,65722646,65722575,65722475,65722440,65722244,65722061,65721879,65721798,65721761,65721526,65721450,65721376,65721350,65720884,65720882,65720861,65720843,65720129,65720118,65719668,65719018,65718986,65718984,65718544,65718109,65717982,65717910,65717876,65717564,65717374,65717358,65717264,65717006,65716660,65716619,65716542,65716335,65715778,650) AND pubdate>1669732378 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6