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 t1.ID=t4.object_id AND t4.term_taxonomy_id = t2.term_taxonomy_id AND t2.taxo' at line 1]
SELECT t1.ID, t1.post_title, t1.post_date, t1.post_content, t3.display_name FROM wp_posts t1, wp_term_taxonomy t2, wp_term_relationships t4, wp_users t3 WHERE t1.post_status = 'publish' AND t1.ID != AND t1.ID=t4.object_id AND t4.term_taxonomy_id = t2.term_taxonomy_id AND t2.taxonomy = 'category' AND t2.term_taxonomy_id IN (0) AND t2.term_taxonomy_id NOT IN (-9999) AND t1.post_author = t3.ID ORDER BY rand() LIMIT 5