Title: Database error
Last modified: September 12, 2023

---

# Database error

 *  [zayeer](https://wordpress.org/support/users/zayeer/)
 * (@zayeer)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/database-error-393/)
 * Hello. I see this error in my WordPress debug log:
 * WordPress database error Unknown column ‘score’ in ‘order clause’ for query
 *           SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID
 *           FROM wp_posts
 *           WHERE 1=1  AND wp_posts.ID in (xxxx,xxxx,xxx) AND wp_posts.post_type
   = ‘xyz’
 *           ORDER BY score DESC, wp_posts.ID ASC
 *            LIMIT 50
 *          made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-
   loader.php’),…,yarpp_get_related, YARPP->get_related, WP_Query->query, WP_Query-
   >get_posts
   (WordPress 6.3.1, PHP 7.4)
    -  This topic was modified 2 years, 8 months ago by [zayeer](https://wordpress.org/support/users/zayeer/).

The topic ‘Database error’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [YARPP](https://wordpress.org/support/topic-tag/yarpp/)

 * 0 replies
 * 1 participant
 * Last reply from: [zayeer](https://wordpress.org/support/users/zayeer/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/database-error-393/)
 * Status: not resolved