SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776362589 and hide='n' and checked='y' and gid IN (12,159,296,403,405,804,1408,1641,1964,2290,2418,2547,2577,2604,3057,3081,3129,3404,3861,3878,4611,5066,6330,6467,6529,6596,6651,6707,6904,6933,6985,7443,7512,7646,7803,7847,7852,7855,8157,8491,8523,8572,8684,8717,8734,8745,8822,8843,8924,9015,9374,9537,9617,9638,10484,10571,10723,10762,10804,11121,11194,11614,11666,11952,12309,12317,12868,12927,12955,13005,13055,13271,13766,13796,14142,14406,14825,15255,16058,16400,16698,16869,16871,16897,17424,17430,17719,17916,18155,18222,18227,18320,18507,18519,18634,18643,18697,18792,18906,19376,19957,19995,20159,20478,20566,20682,21014,21344,21384,21465,21522,21620,21645,21655,21696,21772,21837,22564,22962,23090,23109,23267,23858,23927,24121,24763,24873,24973,25124,25181,25472,25518,25805,26665,26873,27160,27230,27251,27261,27300,28209,28217,28546,30325,31313,31363,31676,32354,32506,34339,34866,34903,36442,1212,12,)
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