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 '65818612,65818127,65817481,65816918,65815716,65815340,65813747,65813183,65813...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65844735,65843946,65843101,65841324,65841265,65841045,65840528,65839965,65839850,65838759,65838500,65838379,65838315,65838253,65837825,65837476,65837023,65837003,65836846,65835594,65833358,65832808,65831296,65830919,65830917,65830524,65830235,65829843,65828909,65828400,65827411,65826768,65825519,65824828,65824714,65824269,65823473,65823332,65823241,65822852,65822093,65821057,65819598,,65818612,65818127,65817481,65816918,65815716,65815340,65813747,65813183,65813085,65812521,65810588,65810525,65809776,65809713,65809602,65809065,65808351,65806501,65806380,65805836,65804141,65803273,65802928,65801490,65800335,65800151,65800059,65799833,65798873,65797952,65797897,65797775,65797692,65797437,65796930,65796780,65796740,65796555,65796069,65796028,65795873,65795872,65795132,65794712,65794565,65794161,65793673,65793671,65793670,65792760,65792517,65791201,65791183,65790444,65789759,65789670,65789654,65789369,65788647,65787963,65787695,65787268,65787265,65786736,65785517,65785516,65784111,65783244,65782897,65779625,65777373,65777302,65777300,65776850,65775801,65775051,65774607,65774495,65774431,65773967,65773432,65773117,65772644,65771595,65771094,65769592,65769588,65769587,65769198,65769196,65769192,65768985,65768764,65766837,65766781,65766566,65766331,65766270,65765180,65764791,65764456,65764327,65764321,65764215,65764188,65764091,65764013,65763563,65763476,65763428,65763293,65763171,65762961,65762132,65759781,65759031,65759025,65757993,65757447,65756343,65756342,65756277,65756087,65756078,65755950,65755416,65755135,65753619,65752827,65752755,65751962,65749827,65749650,65749405,65745000,65744997,65743822,65743362,65743019,65741920,65741890,65741182,65741099,65741005,65740680,65739618,65739387,65739070,65738919,65738758,65738496,65738273,65737928,65737480,65736754,65736491,65736236,65736175,65735049,65734984,65734968,65733974,65733709,65733695,65732569,65731418,65730635,65730419,65729350,65728646,65728412,65727493,65726935,65726759,65724068,65722452,65721670,65721460,65721137,65721062,65720904,65720644,65720247,65719957,65719792,65717553,65717377,65717209,65717200,65716698,65715588,65714096,65712790,65711988,65711400,65708927,65708449,65707524,65707332,65706693,65704966,65704537,65703442,65703440,65702995,65702697,65702680,65700641,65699309,65698909,65698906,65693909,65692781,65692729,65692184,65692111,65684432,65683639,65683166,65681795,65678187,65678108,65677749,65675171,65674814,65674660,65674581,65674476,65674471,65674410,65674107,65674034,65674013,65673749,65671719,65671179,65670525,65668896,65664816,65664399,65664292,65663412,65662840,65661936,65661545,65660964,65660378,65660335,65659914,65656975,65655577,65655205,65654971,65654701,65654455,65654385,65654184,65653918,65653527,65652701,65652403,65652304,65650705,65649791,65648067,65647498,65646890,65646324,65646323,65645711,65641218,65641128,65640855,65640611,65640609,65640524,65639792,65639331,65638291,65638192,65637709,65635650,65635236,65635235,65635111,65634586,65633943,65631538,65631346,65629267,65628394,65628392,65628345,65628344,65628343,65627672,65627321,65623525,65622498,65621897,65621673,65621328,65621027,65620148,65619815,65619691,65619465,65618723,65618635,65618542,65617240,65616540,65615112,65614298,65613504,65612930,65612922,65610519,65610138,65610045,65609071,65608957,65607806,65607724,65607405,65607312,65607173,65606093,65605662,65605450,65605448,65605446,65605334,65605063,65604884,65604879,65604797,65603774,65603514,65603513,65603390,65602968,65602124,65594845,65594636,65594612,65594504,65593765,65593403,65593300,65592485,65592271,65591976,65591648,65591543,65590670,65590410,65589101,65589095,65588828,65586754,65586301,65585490,65585352,65584873,65583379,65583343,65583144,65582346,65581662,65580629,65579689,65579286,65578929,65578921,65576959,65576709,65576523,65576342,65575086,65574975,65574305,65573988,65573677,65573576,65573453,65573266,65572071,65571694,65570818,65570540,65570475,65569213,65569052,65567936,65567767,65567544,65567512,65566721,65566356,65564361,650) AND pubdate>1669729937 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6