SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776356938 and hide='n' and checked='y' and gid IN (372,401,706,738,1075,1160,1167,1179,1259,1280,1447,1475,1632,1634,1703,1720,2086,2199,2439,2540,3286,3545,4193,4224,4479,4551,4670,4761,4919,5353,5512,5762,6747,6911,6956,7130,7163,7174,7557,7603,7608,7610,7694,8126,8207,8735,9045,9092,9171,9211,9256,9277,9705,9946,9967,9981,10008,10073,10082,10099,10223,10294,10450,10452,10540,10682,10771,10867,11020,11023,11047,11055,11062,11124,11144,11146,11147,11149,11276,11372,11530,11569,11738,12014,12045,12049,12255,12370,12435,12602,12905,13253,13446,13747,13802,13995,14013,14326,14581,14599,14643,14918,15031,15143,15206,15224,15537,15602,15700,15789,15811,15836,16049,16530,16567,16695,16748,16753,16768,16961,17001,17056,17558,17576,17647,17709,17820,18179,18245,18258,18894,19012,19108,19119,19284,19337,19354,19355,19392,19399,19435,19503,19645,19825,19959,20173,20204,20269,20301,20663,20669,20814,20943,20947,21334,21414,21538,21678,21778,21849,21920,21927,21945,22048,22061,22064,22192,22263,22284,22339,22539,22626,22644,22666,22745,22843,22953,23211,23293,23298,23654,23662,23668,23740,23811,23967,24107,24170,24222,24251,24724,24733,24965,25011,25224,25240,25261,25394,25398,25413,25551,25611,25735,25781,25974,26117,26191,26483,26512,26643,26736,26846,26896,26954,26963,27101,27232,27254,27364,27453,27787,27799,27859,27862,27952,27993,28039,28088,28092,28614,28671,28756,28766,28889,28927,29025,29169,29194,30112,30115,30600,30764,31393,31834,32785,33051,33677,33805,34340,34734,36177,36360,372372,372,36851,)
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