SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776363719 and hide='n' and checked='y' and gid IN (365,578,630,840,924,1193,1498,1562,1583,1614,1910,2040,2220,2260,2596,2638,2953,3310,3402,3528,3551,3584,3684,3901,4071,4352,4737,4900,4903,4922,5133,5167,5208,5329,5440,5533,5562,5589,5643,5647,5720,6065,6539,6760,6774,6877,7096,7244,7529,7540,7551,7575,7576,7579,7836,7943,8009,8016,8430,8500,8681,8779,8868,9265,9300,9423,9552,9574,9743,9745,9874,10110,10128,10201,10238,10290,10552,10600,10668,10774,10863,10923,10937,10942,10991,11000,11048,11061,11170,11220,11224,11458,11469,11470,11577,11726,11938,12476,12499,12745,13035,13117,13244,13555,13765,14097,14136,14324,14492,14505,14577,14585,14691,14788,14815,14828,15166,15395,15416,15592,15741,16031,16230,16249,16456,17031,17159,17184,17347,17402,17547,17566,17689,17848,18061,18332,18661,18868,18922,18971,19134,19151,19240,19299,19950,20004,20019,20442,20467,20686,20754,20807,20834,20920,21266,21314,21458,21744,21751,21754,21914,21958,21967,22024,22048,22092,22109,22139,22324,22787,22813,22837,23073,23079,23095,23178,23275,23312,23563,23667,23718,23723,23758,23814,23953,24010,24107,24286,24312,24317,24341,24383,24414,24519,24591,24655,24799,24850,24869,24907,24965,25031,25056,25079,25144,25222,25319,25395,25435,25478,25522,25591,25717,25846,25889,25935,26045,26184,26203,26332,26362,26631,26710,26868,26879,26927,27219,27324,27432,27441,27488,27656,27669,27782,28144,28554,28590,28651,28930,28973,29302,29381,29478,29480,29751,29957,30172,30191,30336,30399,30546,31130,31349,31413,31419,31421,31428,31527,31553,31582,31888,32032,32141,32339,32417,32593,32692,32843,32928,34466,34620,35938,36256,36513,365365,365,)
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