Items de portfolio

Error en la base de datos de WordPress: [Unknown column 'wp_posts.IDwp_posts.ID' in 'group statement']
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) INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.ID NOT IN (10433) AND ( wp_term_relationships.term_taxonomy_id IN (157) AND tt1.term_taxonomy_id IN (157) ) AND wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.IDwp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10