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 '%รรร'ร รร%')