SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776362662 and hide='n' and checked='y' and gid IN (385,388,1685,2080,2685,3289,3958,4120,5281,6034,6324,6672,7284,7285,7337,7720,7870,7954,8357,9118,9330,9436,9548,9645,9776,9913,10358,10418,10693,10817,11099,11112,11307,11723,11829,11857,11944,12275,12337,12432,12434,12466,12615,12779,12837,13060,13171,13369,13449,13692,13969,14022,14083,14137,14538,14580,15052,15081,15401,15516,15533,15559,15684,15740,16269,16406,16426,16435,16436,16483,16810,16887,16960,17029,17154,17177,17200,17401,17538,17709,17950,18158,18333,18491,18582,18704,18907,19078,19139,19172,19243,19517,19635,19686,20679,21197,21210,21237,21279,21399,21701,21792,22256,22295,22355,22622,22640,22693,22713,22805,22809,23093,23222,23614,23713,23921,24053,24059,24061,24070,24076,24079,24144,24189,24220,24329,24614,24696,24752,24800,24936,25013,25257,25318,25331,25450,25494,25582,25609,25830,25848,25862,25892,25940,25968,26274,26278,26419,26540,26581,26597,26650,26699,26796,26886,26914,26915,26954,27040,27057,27081,27133,27266,27456,27525,27527,27531,27569,27596,27631,27849,27878,27896,27916,27933,28062,28066,28128,28133,28140,28253,28257,28401,28630,28824,28943,28991,29231,29337,30092,30279,30351,30535,30670,30754,30806,30970,31117,31263,31270,31326,31331,31383,31585,31819,32004,32290,32694,34757,35143,36480,36495,36500,385,36627,3670336790,36790,36849,36731,)
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