SQL error on prod filter
-
I’m getting this following SQL error because this plugin seems to be setting LIMIT 0, -1 on all filters I add. Any ideas / help?
WordPress database error:?[You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘-1’ at line 27]SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_term_relationships AS tt1 ON (wp_posts.ID = tt1.object_id) LEFT JOIN wp_term_relationships AS tt2 ON (wp_posts.ID = tt2.object_id) LEFT JOIN wp_term_relationships AS tt3 ON (wp_posts.ID = tt3.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = 'wcu_currency_unavailable_GBP' ) WHERE 1=1 AND ( ( wp_posts.ID NOT IN ( SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN (7) ) ) AND ( wp_term_relationships.term_taxonomy_id IN (121,122,125,126,231) AND tt1.term_taxonomy_id IN (34,119) ) AND tt2.term_taxonomy_id IN (91) AND tt3.term_taxonomy_id IN (91) ) AND ( wp_postmeta.post_id IS NULL ) AND ((wp_posts.post_type = 'product' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_status = 'private'))) GROUP BY wp_posts.ID ORDER BY wp_posts.ID ASC LIMIT 0, -1
- The topic ‘SQL error on prod filter’ is closed to new replies.