SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776370400 and hide='n' and checked='y' and gid IN (12,965,1034,1491,1641,1822,1870,1905,1908,1964,2033,2604,2880,3081,3387,3574,3803,3878,4013,4018,5079,5470,5588,5590,6079,6208,6467,6651,6860,6943,6947,7179,7224,7430,7621,8001,8582,9019,9374,9446,9479,9495,9552,9861,10347,10597,10771,10911,10986,11056,11189,11332,12076,12309,12755,12800,12889,12933,12995,14158,14622,15744,16400,17127,17428,17489,17645,17959,17975,18155,18507,18833,18925,19165,19392,19581,19719,19833,20079,21467,21696,22109,22573,22717,23090,23186,24121,24197,24635,24810,25143,25212,25387,25865,25944,26216,27780,27786,31313,31330,31517,32404,34590,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