MySQL Query : SELECT keyword, COUNT(*) as count FROM phpcms_search_log WHERE creat_at > UNIX_TIMESTAMP(NOW()) - 86400 GROUP BY keyword ORDER BY count DESC LIMIT 6 LIMIT 20 MySQL Error : 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 'LIMIT 20' at line 1 MySQL Errno : 1064 Message : 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 'LIMIT 20' at line 1