SELECT * FROM wbp_posts LEFT JOIN wbp_term_relationships ON wbp_posts.ID = wbp_term_relationships.object_id WHERE wbp_posts.ID = {$postId}