I need to fetch title, description(content) and image from wp\_posts and wp\_postmeta table.

I am able to fetch image using below query but not able to get the title and content.

```
SELECT childpost.* 
FROM wp_jtgw_posts childpost 
INNER JOIN wp_jtgw_postmeta parentmeta ON (childpost.ID=parentmeta.meta_value)
WHERE parentmeta.meta_key='_thumbnail_id' 
AND parentmeta.post_id=xxxx;

```

Can anybody tell me how can i fetch title and content along with image?