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 ')' 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 WHERE p.post_date < '2014-09-26 07:00:27' AND p.menu_order = '5' AND p.post_type = 'portfolio' AND p.post_status = 'publish' AND tt.taxonomy = 'category' AND tt.term_id IN ()

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 ')' 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 WHERE p.post_date > '2014-09-26 07:00:27' AND p.menu_order = '5' AND p.post_type = 'portfolio' AND p.post_status = 'publish' AND tt.taxonomy = 'category' AND tt.term_id IN ()