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 '65819357,65819189,65818954,65818901,65818698,65818638,65818568,65818511,65818...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65837072,65836963,65836958,65836952,65836943,65836891,65836867,65836748,65836685,65836645,65836489,65836488,65836179,65836115,65836095,65836066,65836044,65836004,65836003,65835967,65835966,65835935,65835896,65835700,65835278,65835150,65834571,65834560,65834402,65834029,65833953,65833882,65833598,65833566,65833454,65833342,65833168,65833134,65833000,65832998,65832951,65832847,65832772,65832755,65832646,65832635,65832526,65832521,65832481,65832470,65832377,65832300,65832242,65832237,65832216,65832200,65831947,65831702,65831658,65831656,65831621,65831569,65831553,65831526,65831496,65831441,65831382,65831355,65831317,65831229,65831161,65831031,65831008,65830868,65830676,65830675,65830431,65830316,65830290,65830288,65830287,65829926,65829834,65829628,65829581,65829205,65828925,65828920,65828915,65828910,65828846,65828814,65828379,65828366,65828171,65828079,65828076,65828065,65828024,65828010,65827892,65827852,65827846,65827611,65827405,65827403,65827116,65827050,65827011,65826966,65826949,65826732,65826696,65826673,65826635,65826585,65826545,65826507,65826374,65826334,65826261,65826132,65826127,65825884,65825758,65825504,65825436,65825385,65825381,65825247,65825151,65825067,65825033,65825014,65825004,65824715,65824666,65824620,65824525,65824182,65824056,65823918,65823897,65823880,65823876,65823826,65823025,65822914,65822781,65822780,65822738,65822730,65822726,65822697,65822472,65822446,65822420,65822247,65822246,65822029,65822028,65822026,65821976,65821937,65821648,65821320,65821125,65821057,65820621,65820522,65820403,65819786,65819415,,65819357,65819189,65818954,65818901,65818698,65818638,65818568,65818511,65818404,65818327,65818214,65818000,65817999,65817959,65817913,65817675,65817553,65817499,65817437,65817223,65817222,65817136,65817018,65816967,65816944,65816913,65816678,65816666,65816608,65816516,65816421,65816267,65816240,65816179,65816082,65815955,65815886,65815570,65815523,65815427,65815244,65815150,65814605,65814488,65814436,65814330,65814325,65814052,65813966,65813947,65813865,65813689,65813683,65813681,65813526,65813495,65813381,65813197,65813186,65813182,65813138,65813117,65813086,65812912,65812911,65812910,65812902,65812800,65812766,65812712,65812602,65812475,65812117,65811979,65811799,65811404,65811391,65811055,65810506,65810350,65810344,65810176,65810040,65809946,65809895,65809889,65809875,65809707,65809590,65809570,65809562,65809483,65809384,65809376,65809321,65809227,65809221,65809196,65809176,65809129,65809127,65809091,65809065,65809049,65808964,65808842,65808827,65808764,65808389,65808314,65808166,65807995,65807752,65807373,65807368,65807255,65807126,65807079,65807011,65806903,65806348,65806257,65805934,65805917,65805790,65805616,65805399,65805216,65805143,65804940,65804856,65804730,65804716,65804647,65804619,65804493,65804243,65804237,65804160,65803998,65803902,65803903,65803806,65803802,65803582,65803540,65803507,65803010,65802990,65802922,65802753,65802749,65802474,65802415,65802277,65802200,65802072,65802035,65801871,65801855,65801801,65801653,65801644,65801633,65801380,65801357,65801257,65801191,65800951,65800892,65800688,65800608,65800540,65800350,65800151,65799910,65799746,65799689,65799632,65799522,65799477,65799453,65799447,65799417,65799384,65799318,65799269,65799031,65798854,65798660,65798540,65798534,65798087,65798071,65797946,65797888,65797758,65797750,65797570,65797427,65797352,65797135,65796859,65796711,65796550,65796451,65796393,65796304,65796229,65796170,65796132,65796096,65795996,65795843,65795826,65795804,65795799,65795363,65795328,65795087,65795047,65795029,65794588,65794539,65794492,65794430,65794298,65794267,65794261,65794250,65794061,65793955,65793834,65793782,65793655,65793654,65793509,65793435,65793296,65793207,65793173,65792957,65792826,65792809,65792767,65792135,65792013,65791999,65791894,65791854,65791806,65791633,65791601,65791443,65791381,65791296,65791256,65791200,65791192,65791180,65791096,65791075,65790991,65790876,65790826,65790628,65790393,65790385,65790086,65790083,65789755,650) AND pubdate>1669690596 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6