SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776369442 and hide='n' and checked='y' and gid IN (117,303,380,398,400,450,451,688,690,743,924,983,1027,1209,1248,1661,2011,2033,2126,2236,2880,3327,3585,3829,3960,3978,4224,4228,4567,5075,5165,5450,5559,5613,5744,5861,5930,6065,6361,6377,6467,6547,6605,6651,6795,6835,6843,7150,7228,7318,7581,7779,7866,7867,7894,8139,8222,8238,8483,8633,8925,9084,9461,9473,9480,9574,9597,9632,9707,9720,9730,9909,9954,10099,10310,11103,11554,11863,11882,12219,12222,12318,12382,12493,12961,12996,13187,13642,13955,13976,14069,14169,14280,14291,14447,14455,14470,14520,14538,14569,14627,14765,14929,15133,15134,15197,15636,15804,16007,16460,17047,17354,17427,17440,17525,17763,17787,17976,17997,18213,18314,18353,18493,18572,18669,18698,19043,19191,19340,19387,19460,19842,19912,20566,20888,21003,21032,21198,21269,21398,21432,21454,21466,21512,21615,21728,21848,21849,21931,22034,22359,22382,22429,22614,22722,22756,22762,22857,23383,23394,23404,23624,23650,23733,23866,23896,23922,23997,24185,24344,24468,24512,24516,24705,24898,25114,25406,25548,25592,25657,25964,26020,26051,26074,26144,26343,26538,26658,27287,27301,27561,27855,27906,27918,27985,28014,28026,28035,28111,28131,28388,28635,28646,28663,28736,29129,29169,29320,29329,29619,29902,30090,30367,30592,30600,31067,31225,31329,31430,31477,31555,31644,32004,32029,32045,32069,32124,32360,32366,32415,32421,32785,32829,32855,32887,32899,33224,33284,33338,33718,34090,34105,36140,36220,36266,36304,36334,11736790,36785,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