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 'k_posts.post_status = 'publish') GROUP BY wp_0w753az1bk_posts.ID HAVING MAX( IF ' at line 1]
SELECT SQL_CALC_FOUND_ROWS wp_0w753az1bk_posts.ID FROM wp_0w753az1bk_posts LEFT JOIN wp_0w753az1bk_term_relationships AS tr1 ON (wp_0w753az1bk_posts.ID = tr1.object_id) LEFT JOIN wp_0w753az1bk_term_taxonomy ON ( tr1.term_taxonomy_id = wp_0w753az1bk_term_taxonomy.term_taxonomy_id ) WHERE 1=1 AND ( wp_0w753az1bk_posts.post_author IN (1) AND wp_0w753az1bk_posts.post_type = 'rem_property' AND (wp_0w753az1b OR (wp_0w753az1bk_term_taxonomy.taxonomy = 'author' AND wp_0w753az1bk_term_taxonomy.term_id = '14'))k_posts.post_status = 'publish') GROUP BY wp_0w753az1bk_posts.ID HAVING MAX( IF ( wp_0w753az1bk_term_taxonomy.taxonomy = 'author', IF ( wp_0w753az1bk_term_taxonomy.term_id = '14',2,1 ),0 ) ) <> 1 ORDER BY wp_0w753az1bk_posts.post_date DESC LIMIT 0, 10