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 '65819231,65819179,65818759,65818011,65817797,65817731,65817602,65817028,65816...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(0,65846791,65846691,65846586,65846517,65846250,65846057,65845557,65844558,65843251,65842958,65842945,65842696,65841655,65841470,65841042,65840451,65840323,65839822,65839811,65839785,65839692,65839609,65839419,65839131,65838978,65838952,65838841,65838751,65838606,65838536,65838464,65838387,65838380,65838312,65838296,65838152,65838109,65838101,65837958,65837865,65837496,65837452,65837326,65837263,65836054,65835427,65834610,65833478,65833108,65833063,65832662,65832591,65832532,65831986,65830923,65830719,65829049,65828946,65828935,65828518,65828011,65827579,65827475,65826882,65826476,65826390,65826284,65826116,65825443,65825248,65825218,65825017,65824933,65824282,65823763,65823619,65822030,65821238,65820796,65820452,65820257,65819744,65819656,65819606,65819389,,65819231,65819179,65818759,65818011,65817797,65817731,65817602,65817028,65816854,65816796,65816180,65815257,65814804,65814512,65814397,65814051,65813735,65813566,65812774,65812432,65812429,65811971,65811697,65811204,65811118,65810689,65810616,65810611,65810395,65809631,65809518,65809394,65808050,65807541,65807495,65806950,65806811,65806785,65806766,65806169,65805835,65805682,65805432,65805393,65804137,65803234,65803177,65802762,65802562,65802553,65802498,65801507,65801187,65800536,65800338,65799236,65798559,65797938,65797429,65797196,65797114,65796462,65795987,65795189,65794966,65794657,65794052,65793251,65793239,65793070,65792870,65791394,65790267,65789939,65789843,65789301,65789242,65789122,65788336,65788155,65788134,65787825,65787463,65787297,65787295,65787139,65786651,65786496,65786316,65786090,65784405,65784264,65783657,65783496,65783441,65783315,65783184,65782935,65781899,65780042,65779572,65779186,65778675,65777861,65776660,65775848,65775081,65775022,65774906,65774804,65774718,65774402,65774392,65773848,65773302,65773158,65772917,65772720,65771131,65770514,65770478,65769865,65769799,65769718,65769323,65768198,65767847,65767620,65766935,65766697,65766279,65766125,65765641,65765267,65765217,65764415,65764283,65764232,65764191,65763675,65763420,65763190,65763178,65763135,65762003,65760619,65760017,65758539,65757626,65757432,65757376,65757334,65757080,65755275,65754655,65754627,65754097,65753522,65753398,65753239,65751397,65751260,65749024,65748277,65748027,65748016,65747902,65747286,65746641,65746569,65745879,65745868,65745388,65745322,65745279,65744886,65744196,65743783,65743696,65743428,65743095,65742148,65741395,65740887,65740886,65739481,65738458,65738370,65738275,65738067,65738052,65737274,65737126,65737090,65737051,65736772,65736549,65736490,65736446,65736229,65735769,65735428,65735339,65734921,65734853,65734814,65733823,65733601,65733533,65733494,65733225,65733059,65732887,65732743,65731270,65731006,65729831,65728828,65728655,65727952,65727105,65726236,65725774,65725339,65724561,65724356,65724217,65724188,65723876,65723251,65723188,65723076,65722460,65722445,65721960,65721710,65721682,65721591,65721476,65721379,65721292,65721288,65720314,65720002,65719889,65719185,65718631,65718590,65718480,65718284,65718158,65717773,65717699,65717554,65717502,65717035,65716377,65716370,65716237,65716152,65715946,65715180,65714765,65713527,65713446,65713291,65713176,65713081,65712540,65712202,65711946,65711834,65711753,65711686,65711634,65711323,65711214,65710884,65710595,65710590,65710424,65710299,65709646,65709377,65709354,65709295,65709203,65708959,65708809,65708691,65708666,65708638,65708524,65708259,65708210,65708032,65707963,65707724,65707331,65706765,65706635,65706579,65706520,65706464,65706357,65706351,65705745,65705677,65705674,65705623,65705616,65705338,65705118,65704919,65704813,65704612,65704428,65704399,65704287,65704283,65704282,65704173,65703994,65703894,65703596,65703474,65703450,65703306,65703266,65703230,65702949,65702603,65702427,65702198,65702066,65701878,65701245,65701159,65701113,65701086,65701005,65700771,65700561,65700421,65700351,65700164,65699973,65699885,65699773,65699678,65699654,65699555,65699146,65699066,65698993,65698970,65698887,65698739,65698709,650) AND pubdate>1669732308 AND fgn_news.src_id=fgn_src.src_id ORDER BY hit*(gid+0.01) DESC LIMIT 0,6