DB function failed with error number 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 'ร…ร‘ร‚%' OR cn.description like '%รร‹ร’'ร…ร‘ร‚%' OR ' at line 3 SQL=SELECT COUNT(*) FROM truepanya_maincontent AS cn WHERE cn.published = '1' and TO_DAYS(cn.publishdate) <= TO_DAYS(CURDATE()) AND (cn.contentName like '%รร‹ร’'ร…ร‘ร‚%' OR cn.description like '%รร‹ร’'ร…ร‘ร‚%' OR cn.keyword like '%รร‹ร’'ร…ร‘ร‚%')