SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776368353 and hide='n' and checked='y' and gid IN (227,398,471,513,659,844,924,1149,1163,1243,1273,1445,1446,1616,1955,2004,2034,2047,2609,3024,3204,3254,3464,3494,3774,3835,3872,3873,4019,4025,4115,4681,4840,5110,5412,5675,5925,6255,7179,7192,7336,7369,7659,7894,7916,7925,7931,7961,8262,8623,9260,9279,9408,9409,9813,10240,10472,10641,10879,11061,11317,11467,11895,12267,12502,12804,13122,13690,13813,13845,13956,14187,14239,14341,14585,14618,14624,14632,14843,14947,15214,15435,15550,15607,15846,17010,17692,17696,17740,17761,17919,18787,19591,20680,21122,22747,23351,23525,23819,23856,24392,24494,25820,25999,27455,27463,27466,27556,28285,28587,29220,29306,29537,29703,29880,30236,30551,31114,31123,31149,31584,31941,32010,32156,32326,32345,32410,32467,32830,35224,36508,227227,227,)
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