SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776364246 and hide='n' and checked='y' and gid IN (1159,1313,1318,2095,2954,3671,4023,4257,4266,4426,4510,4529,4982,5044,5512,5617,6136,6796,7197,7369,7403,7925,8232,8454,9425,9467,9913,9927,10089,10099,10369,10620,10679,11436,11475,11745,12408,12764,12811,12892,13891,14016,14028,14556,14838,15126,15821,16036,16544,17033,17696,17830,17842,17944,17999,18902,19292,19560,20046,20204,20854,21031,21114,21762,21867,22000,22186,22983,23052,23164,23351,23925,24104,24392,24494,24679,24789,24980,24990,25329,25880,26085,26092,26278,26420,26459,26872,27368,27452,27463,27526,27609,27682,28017,28534,28589,28743,28958,29636,29673,29821,30200,30236,30327,30391,31205,31284,31417,31453,31935,32098,32185,32274,32345,32426,32519,32524,32587,32996,34284,35938,36071,36248,36395,36513,11591159,1159,)
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