How to fetch all meta_key and meta_value using post_id wihout duplication of post meta using sql query.
This query is repeting the post meta each time .
$sql="SELECT * FROM wp_posts
LEFT JOIN wp_postmeta
ON wp_posts.ID= wp_postmeta.post_id
where post_type='property'";