SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776355758 and hide='n' and checked='y' and gid IN (27,299,358,372,817,1171,1359,1418,1437,1515,1628,1888,1997,2007,2033,2155,2156,2254,2489,2909,3243,3303,3357,3538,3555,4013,4162,4228,4968,5030,5254,5285,5371,5514,5643,5740,5837,5861,5960,6133,6164,6285,6321,6324,6328,6357,6519,6662,6746,6785,6791,6858,6860,6886,6925,6947,6990,7035,7040,7052,7069,7119,7163,7192,7195,7235,7334,7548,7624,7700,7846,7998,8373,8401,8546,8582,8773,8885,8973,8983,9011,9249,9820,9884,10033,10067,10229,10433,10441,10587,10689,10808,10830,11025,11047,11052,11194,11261,11432,11437,11597,11637,11733,11752,11784,11882,11998,12139,12299,12318,12528,12755,12800,12933,13113,13602,13719,13767,13949,14183,14270,14317,14322,14454,14686,14703,14920,14991,15001,15115,15147,15182,15409,15476,15617,15701,16173,16530,16773,16925,17057,17323,17482,17584,17669,17786,18005,18269,18288,18304,18333,18371,18372,18446,18493,18572,18626,18740,18754,18858,18966,19041,19100,19144,19169,19229,19338,19392,19541,19552,19575,19593,19634,19890,20108,20328,20566,20580,20614,20735,20884,20969,21016,21092,21282,21395,21587,21634,21658,21704,21728,21766,21883,21889,22010,22018,22047,22107,22124,22162,22314,22332,22520,23086,23232,23274,23427,23468,23960,24377,24402,24635,24728,24788,24860,24882,25143,25172,25189,25199,25212,25625,25908,25937,26451,26857,26876,27379,27384,27406,27431,27530,27549,27561,27562,27629,27649,27720,27722,28079,28083,28117,28150,28415,28498,28663,28687,28755,28838,28869,28956,28978,29329,29335,29476,29707,29808,29866,29944,29982,30089,30090,30100,30184,30206,30247,30286,30302,30311,30499,30543,30544,30572,30599,30622,30667,30694,30755,30797,30800,30925,30998,31067,31073,31261,31264,31280,31313,31372,31384,31420,31430,31460,31512,31658,31738,31748,31751,31930,31971,32076,32225,32354,32355,32390,32415,32420,32421,32465,32562,32579,32661,32684,32690,32691,32724,32759,32793,32828,32840,32931,34651,35311,36273,3636336790,36790,)
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