SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776362447 and hide='n' and checked='y' and gid IN (27,1101,1290,2308,2427,3398,3648,3886,3888,3960,4135,4196,4280,4680,4700,4702,4791,4819,5030,5404,5567,5865,6016,6117,6373,6386,6502,6708,6715,6746,6747,6774,6828,6848,6928,7092,7142,7274,7380,7494,7533,7605,7642,7649,7921,8207,8259,8324,8396,9051,9127,9132,9257,9388,9435,9507,9559,9726,9731,9822,9866,9951,10090,10103,10143,10346,11124,11430,11574,11899,12716,12719,13456,13499,13515,13583,13712,13755,14021,14032,14201,14349,14588,14613,14692,14826,15150,15299,15641,15807,15895,16042,16508,16531,16569,16696,16929,17212,17233,17236,17330,17346,17497,17521,17729,17730,17833,17928,18037,18074,18078,18092,18115,18152,18200,18304,18498,18599,18608,18632,18647,18664,18722,18817,18925,18955,18991,19047,19204,19244,19284,19303,19310,19466,19572,19580,19801,19882,19957,19961,20196,20584,20659,20699,20773,20884,21009,21203,21218,21266,21395,21401,21510,21635,21902,22094,22194,22517,22645,22733,22750,22766,22806,23005,23006,23043,23082,23097,23197,23391,23408,23820,23843,24127,24268,24394,24395,24593,24789,24823,25042,25059,25139,25293,25335,25418,25470,25539,25575,25650,25903,25970,26059,26199,26365,26670,26674,26690,26805,26909,27080,27127,27158,27256,27280,27313,27722,27758,28171,28211,28836,28869,28891,28960,30019,30032,30418,30500,30578,30630,30648,30694,30716,30840,30887,30947,31129,31163,31169,31205,31334,31357,31379,31439,31452,31464,31653,31682,31808,31919,31959,32179,32184,32371,32511,32535,32556,32700,32760,32763,32825,32963,32989,33329,3588736839,36839,36785,36890,)
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