SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776368354 and hide='n' and checked='y' and gid IN (710,1098,2158,2241,2533,4179,4261,4386,4873,5236,5455,5720,5817,5951,6276,6405,6466,6753,6802,6849,8652,9833,10255,10386,10762,10825,10954,10990,11198,11519,11666,11851,11952,12120,12128,12134,12398,12565,12700,12754,13436,13728,13782,13793,13838,14587,14658,15586,16359,16852,16980,17051,17119,17127,17347,17404,17518,17908,18612,18807,19874,20181,20787,21522,22003,22861,23594,23758,23783,23905,23922,23947,24472,25067,25181,25219,25662,25780,27919,28046,28666,31224,31362,31762,32721,36603,710710,710,)
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