SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776369343 and hide='n' and checked='y' and gid IN (201,299,551,940,968,1313,1530,2140,3307,3700,4096,4585,4855,5533,5605,5657,5665,6321,6354,6375,6421,6547,6685,6760,7119,7229,7304,7431,7643,7816,7883,8273,8692,8853,9258,9574,10017,10027,10119,10194,10294,10901,10937,11016,11125,11129,11133,12727,13028,14141,14232,14270,14522,14571,14642,14883,15006,15466,15751,16128,16550,16783,16858,16925,17050,17079,17143,17260,17405,17438,17700,17771,18380,18490,18596,18621,18771,18916,19041,19305,20231,20777,20999,22716,22913,22964,23147,23235,23434,23807,25053,25282,25821,26054,26245,26828,27102,27752,28559,28761,28960,30105,30108,30508,30724,31028,31060,31182,31428,31430,31487,31718,31803,31823,32016,32112,32476,32793,32824,32926,34636,35101,201,3661536615,36615,)
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