I need a single query to get id,title,content from post table and focus keyword from yoast seo table. I'm working on one project that can't run 2 queries and only can run one query and get only one array in return. any suggestion?
$query = 'SELECT `ID`,`post_title`,`post_name`,`post_content`,`post_status`,`post_date`,`post_modified` FROM `wp_posts` WHERE post_type="post" AND post_status="publish" ORDER BY post_date DESC LIMIT '.$limit;
This code returns post data but yoast data is in another table