SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776355787 and hide='n' and checked='y' and gid IN (107,2337,2404,3493,3576,4267,5058,5296,5342,5603,5763,5816,5957,7095,7270,7317,7355,7641,8258,8376,8583,8712,8771,8819,8924,8950,9113,9169,9219,9383,10132,10160,10179,10372,10540,10635,10943,11087,11141,11206,11346,11351,11380,11385,11588,11637,11677,11766,11982,12290,12875,13198,13406,13478,13783,14136,14161,14243,14387,14427,14436,14563,14880,15299,15362,15855,16290,16849,16906,17092,17164,17271,17296,17308,17763,17928,18074,18242,18631,19512,19572,19704,20072,20510,20536,20610,20619,20702,20741,20747,20813,20843,20857,21021,21131,21267,21347,21453,21554,21983,22269,22326,22543,22569,22806,22813,22973,23062,23207,23342,23415,23586,24053,24395,24510,25197,25674,25684,25754,25778,26083,26147,26200,27735,27758,27969,28037,28098,28764,28806,29299,29400,29786,29810,29945,30295,30376,30470,30726,31038,31875,31906,31938,32077,32163,32249,32435,32575,107107,107,)
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