[Plugin: Yet Another Related Posts Plugin] SQL Syntax Error
-
I’m pretty excited about the features of your plugin, but when I install it and try to view a post, I get the following error:
`
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 ‘and catscore >= 1 and tagscore >= 1 order by post_date DESC limit 4’ at line 21]
SELECT *, (bodyscore * 1 + titlescore * 3 + tagscore * 1 + catscore * 1) AS score from ( select ID, post_title, post_date, post_content, (MATCH (post_content) AGAINST (‘students learning lectures lecture student environment boring academics article internet experience engaging adams professor passive education research wireless teacher academic’)) as bodyscore, (MATCH (post_title) AGAINST (‘syndrome street sesame’)) as titlescore, ifnull(catscore,0) as catscore, ifnull(tagscore,0) as tagscore from wp_posts left join ( select count(*) as block, object_id from wp_term_relationships natural join wp_term_taxonomy natural join wp_terms where wp_terms.term_id in (4) group by object_id ) as poolblock on (wp_posts.ID = poolblock.object_id) left join ( select count(*) as tagscore, object_id from wp_term_relationships natural join wp_term_taxonomy where wp_term_taxonomy.taxonomy = ‘post_tag’ and wp_term_taxonomy.term_taxonomy_id in (select term_taxonomy_id from wp_term_relationships where object_id = ‘449’) group by object_id ) as matchtags on (wp_posts.ID = matchtags.object_id) left join ( select count(*) as catscore, object_id from wp_term_relationships natural join wp_term_taxonomy where wp_term_taxonomy.taxonomy = ‘category’ and wp_term_taxonomy.term_taxonomy_id in (select term_taxonomy_id from wp_term_relationships where object_id = ‘449’) group by object_id ) as matchcats on (wp_posts.ID = matchcats.object_id) where ((post_status IN ( ‘publish’, ‘static’ ) && ID != ‘449’) and post_password =” and post_type IN (‘post’) and block IS NULL ) ) as rawscores where (bodyscore * 1 + titlescore * 3 + tagscore * 1 + catscore * 1) >= and catscore >= 1 and tagscore >= 1 order by post_date DESC limit 4`Can you help me out? I’m afraid that I don’t know much about my host’s setup in terms of MySQL versions, although I can try to do a little research if that’s called for.
Thanks in advance.
- The topic ‘[Plugin: Yet Another Related Posts Plugin] SQL Syntax Error’ is closed to new replies.