Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Sorting posts give an sql error in combination with Yoast SEO #844

@tobiasschutter

Description

@tobiasschutter

Error:
SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (229,240,165) AND wp_posts.post_type = 'post' AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft')) LIMIT 0, -1

Reproduce:
Install Yoast SEO 5.0
Add Excerpt column to post
Sort on excerpt

It seems Yoast SEO hooks into the wp_query and adds -1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions