Invalid SQL: select * from cms_tag WHERE domainid = 1 AND lower(name) in ('new year's','success','happiness','helen keller','mark twain','new year\'s','enough','sometimes','william shakespeare','new year\'s','hope','come','new year\'s','quotes','william shakespeare','new year\'s','hope','come','mark twain','enough','sometimes','success','happiness','helen keller') ORDER BY total desc LIMIT 30

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 's','success','happiness','helen keller','mark twain','new year\'s','enough','som' at line 3 (1064)