SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776369440 and hide='n' and checked='y' and gid IN (371,386,995,999,1659,1750,2638,2770,2850,3992,4085,4500,4737,5194,5526,6071,6931,7088,7229,8596,8610,8802,8910,8965,8995,9133,9423,10253,10399,10888,11074,11121,12239,12339,12425,12741,12781,13225,14346,14471,15024,15154,15206,15713,16179,16365,16893,16998,17026,19082,19120,19601,20343,20357,20574,20672,20892,21293,21304,21532,21759,22101,22512,22706,24008,24182,24228,24268,24511,24545,24852,25027,25122,25280,25388,25636,25815,25942,27747,28225,28399,30465,31022,31050,32221,32356,32838,371371,371,)
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