Title: SQL Error WordPress Related Posts
Last modified: August 19, 2016

---

# SQL Error WordPress Related Posts

 *  [horatiub](https://wordpress.org/support/users/horatiub/)
 * (@horatiub)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/sql-error-wordpress-related-posts/)
 * I am using a WordPress Related posts from [http://fabrizio.zellini.org/wordpress-related-posts-with-thumbs-revised](http://fabrizio.zellini.org/wordpress-related-posts-with-thumbs-revised)
 * I wonder what this error is related to. Any ideas?
 * 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‘
   WHERE post_status = ‘publish’ AND post_type = ‘post’ AND ID != 6961 ORDER BY 
   RAN’ at line 1 for query SELECT ID, post_title, post_content,post_date, comment_count
   FROM WHERE post_status = ‘publish’ AND post_type = ‘post’ AND ID != 6961 ORDER
   BY RAND() LIMIT 4 made by require, require_once, include, wp_related_posts, wp_get_related_posts,
   wp_get_random_posts

The topic ‘SQL Error WordPress Related Posts’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [horatiub](https://wordpress.org/support/users/horatiub/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/sql-error-wordpress-related-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
