Support » Plugin: Post Types Order » “You have an error in your SQL syntax”

  • Resolved Nikodemsky

    (@nikodemsky)


    So after activating plugin and enabling debug i’m getting 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 ')' at line 3]
    
    SELECT p.* FROM wp_posts AS p
    INNER JOIN wp_term_relationships AS tr ON p.ID = tr.object_id INNER JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
    HERE p.post_date < '2019-05-24 15:11:29'  AND p.menu_order = 0 AND p.post_type = 'product' AND p.post_status = 'publish' AND tt.taxonomy = 'category' AND tt.term_id IN ()

    It appears under function refers to post nav links:
    https://developer.wordpress.org/reference/functions/previous_post_link/
    and i’m not sure why.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘“You have an error in your SQL syntax”’ is closed to new replies.