Unknown column 'log' in 'where clause'
SELECT COUNT(*) FROM SC_news_table WHERE type=log