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 '65819306,65819140,65819103,65819041,65819008,65818868,65818805,65818631,65818...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65863770,65862792,65862782,65861592,65860992,65860823,65860229,65859666,65859164,65857933,65857808,65856345,65856211,65856193,65856115,65855966,65855681,65855255,65854662,65853302,65852649,65852302,65852068,65851970,65851868,65851627,65851523,65851275,65850935,65848945,65848828,65848783,65848743,65848546,65848292,65848170,65848057,65847765,65847558,65847531,65847461,65846535,65846472,65846328,65846302,65845745,65845411,65845239,65845187,65845007,65844410,65844278,65843840,65843769,65843466,65843261,65843228,65842146,65841955,65841865,65841517,65841508,65840908,65840622,65840492,65840240,65840200,65839920,65839821,65839551,65839148,65838989,65838984,65838882,65838817,65838585,65838474,65838338,65838001,65837923,65837860,65837580,65837550,65837524,65837431,65837136,65837109,65836159,65835560,65834981,65834728,65834299,65833589,65833432,65833431,65833398,65833326,65832915,65832880,65832369,65832158,65831998,65831942,65831494,65830794,65830769,65830524,65830395,65830235,65829901,65829553,65829468,65829341,65829160,65829066,65828993,65828900,65828896,65828788,65828782,65828693,65828606,65828542,65828482,65828287,65827870,65827834,65827756,65827268,65827238,65826896,65826720,65826537,65826065,65825836,65825807,65825701,65825268,65825252,65824847,65824356,65824197,65823999,65823973,65823477,65822036,65821310,65821081,65821056,65821055,65820780,65820607,65820457,65820435,65819829,65819767,65819721,65819692,65819422,,65819306,65819140,65819103,65819041,65819008,65818868,65818805,65818631,65818451,65818440,65818291,65818157,65817889,65817667,65817001,65816986,65816867,65816810,65816735,65816701,65816551,65816412,65816350,65816343,65816231,65816183,65816079,65815991,65815984,65815818,65815746,65815380,65815350,65815293,65815149,65814877,65814623,65814608,65814548,65814277,65814268,65814221,65814187,65813883,65813828,65813784,65813641,65813285,65812981,65812935,65812862,65812295,65812261,65811600,65811505,65810946,65810709,65810216,65809987,65809667,65809306,65809068,65808654,65807957,65807762,65807590,65807131,65806471,65806452,65805632,65805248,65805190,65805048,65804953,65804700,65803847,65803481,65803370,65803168,65803105,65803063,65802398,65802114,65801447,65801410,65801405,65801011,65800548,65800503,65800319,65800305,65800162,65799639,65799601,65799585,65799573,65799488,65799212,65799088,65798910,65798866,65798679,65798658,65798521,65798313,65798165,65798108,65797863,65797685,65797270,65797122,65797035,65796849,65796628,65796390,65796263,65796112,65796108,65795163,65794743,65794393,65794378,65793375,65792845,65792796,65792446,65792089,65791859,65791796,65791668,65791594,65791333,65791305,65791059,65790898,65790473,65789731,65789578,65789296,65789294,65788638,65788575,65788373,65788284,65787055,65786733,65786402,65785943,65785853,65785450,65785363,65785178,65784982,65784702,65784287,65784238,65784056,65783905,65783681,65783453,65783340,65782849,65782660,65782515,65782258,65780062,65778083,65777137,65777086,65776609,65776285,65776222,65775977,65775875,65775865,65775615,65775575,65775491,65775381,65774886,65773357,65772395,65772379,65772369,65772367,65771555,65771065,65771017,65770713,65770704,65770614,65770467,65770264,65770181,65770126,65769659,65769295,65769014,65769008,65768980,65768932,65768929,65768856,65767940,65767753,65767666,65767620,65767542,65767088,65766962,65766790,65766316,65766256,65765604,65765079,65764731,65764683,65764498,65764293,65763817,65763791,65763703,65763322,65762564,65762501,65762098,65761889,65761662,65761599,65760825,65760612,65760585,65760535,65760303,65760178,65760158,65760086,65760029,65759848,65759565,65759406,65759201,65759109,65758992,65758945,65758909,65758744,65758454,65758404,65758140,65757967,65757892,65757751,65757705,65757376,65757099,65756985,65756905,65756214,65755944,65755489,65755413,65755383,65755278,65755216,65755016,65754798,65754728,65754633,65754616,65754608,65754607,65754604,65754601,65754395,65754235,65753781,65753608,65753317,65753256,65753178,65752991,65752945,65752779,65752713,650) AND pubdate>1669897187 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6