Title: [Plugin: WordPress Popular Posts] SQL errors on pages when popular posts activated
Last modified: August 19, 2016

---

# [Plugin: WordPress Popular Posts] SQL errors on pages when popular posts activated

 *  [AndrewRH](https://wordpress.org/support/users/andrewrh/)
 * (@andrewrh)
 * [17 years ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-sql-errors-on-pages-when-popular-posts-activated/)
 * I installed v1.4.6 of WordPress Popular Posts. The top of every posting then 
   had this error message displayed:
 * > WordPress database 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 ‘ON DUPLICATE KEY UPDATE pageviews=pageviews+1’ at line 1]
   >  INSERT
   > INTO wp_popularpostsdata (postid, day) VALUES (‘2864’, NOW()) ON DUPLICATE 
   > KEY UPDATE pageviews=pageviews+1
 * ~Andrew~

The topic ‘[Plugin: WordPress Popular Posts] SQL errors on pages when popular posts
activated’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [AndrewRH](https://wordpress.org/support/users/andrewrh/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-sql-errors-on-pages-when-popular-posts-activated/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
