SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776362401 and hide='n' and checked='y' and gid IN (123,129,260,299,303,436,528,547,964,1013,1537,1605,1750,1852,1895,2364,2404,2446,2810,3286,3730,4182,4228,4325,4447,4586,5009,5150,5153,5469,5721,5734,5987,6732,6945,7029,7047,7048,7173,7337,7339,7688,7870,8174,8200,8218,8279,8377,8695,8905,8910,9315,9566,10217,10447,10481,10525,10626,10799,11054,11059,11061,11199,11228,12093,12339,12531,12600,12602,12608,12615,12648,12739,12778,12841,12953,12977,13222,13556,13828,13881,14029,14094,14500,14669,14728,14750,14900,15018,15065,15383,15640,15787,15997,16210,16406,16522,17034,17278,17339,17415,17471,17487,17523,17566,17569,17898,17957,18298,18324,18328,18702,19626,19908,20201,20731,20782,20784,21594,21719,21821,21836,22031,22217,22269,22494,22541,22781,22912,23081,23479,23498,23973,24009,24346,24795,25188,25291,25640,25821,25993,26024,26125,26232,26485,26526,26718,26805,26882,26983,27069,27125,27206,27393,27428,27582,27634,27759,28061,28260,28403,28653,28780,28873,30135,30355,31218,31340,31462,31518,31545,31619,31648,31955,31965,32064,32349,33698,34338,35224,36265,123123,123,)
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