SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776362488 and hide='n' and checked='y' and gid IN (115,139,234,369,372,431,1122,1391,1575,1653,1706,1919,2218,2244,2390,2426,2475,2502,2739,3106,3130,3283,3739,4116,4202,4257,4298,4548,5353,5406,5641,6015,6417,6483,6506,7073,7150,7180,7186,7208,7233,7721,7761,7780,7811,8174,8227,8442,8444,8524,8658,8715,9087,9114,9362,9405,9423,9563,9764,10223,10241,10860,10943,11135,11290,11319,11798,12916,13833,13860,14213,14316,14338,14365,14426,14502,14679,14776,14785,14829,15055,15352,16193,16290,16695,16746,16788,16844,16857,16858,17034,17091,17176,17182,17184,17605,17659,17759,17856,18055,18088,18114,18151,18271,18394,19127,19486,19783,20171,20198,20681,20759,20770,20814,20935,21057,21070,21180,21261,21402,21702,21882,21948,21967,22033,22037,22173,22248,22257,22549,22652,22723,22820,22875,22895,22906,22984,22993,22994,23022,23081,23178,23225,23289,23305,23496,23733,23759,23953,24012,24278,24279,24383,24403,24404,24428,24439,24524,24538,24587,24852,24855,24877,24884,24963,25011,25060,25098,25322,25323,25395,25423,25527,25547,25768,25781,25852,25866,26041,26187,26191,26243,26306,26404,26476,26629,26666,26797,27169,27257,27541,27568,27589,27610,27693,27777,27925,27976,28018,28044,28179,28571,28681,28756,29299,29346,29395,29793,29881,29989,30021,30053,30065,30805,30945,31025,31038,31317,31349,31435,31630,31683,31789,31945,32223,32267,32324,32412,32557,32559,32571,32586,32779,32802,32803,32872,34787,36357,36423,11536876,36878,)
error: 1064 , You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1