SELECT COUNT(*) AS total FROM emlog_blog WHERE type='blog' and date<=1776507971 and hide='n' and checked='y' and gid IN (161,351,501,1485,2061,5593,9470,13640,18378,21069,22072,26632,26763,27568,29346,30823,32872,33439,161161,161,)
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