How can I find distinct Property values within a table based on their Area value and their post_id must match? Let's say I want Property values for Arabian Ranches based on the below table. The result I'm looking for is Avenida 1, Avenida 2.
post_id 104908, meta_key Property, meta_value Avenida 1
post_id 104908, meta_key Area, Arabian Ranches
post_id 104909, meta_key Property, meta_value Avenida 2
post_id 104909, meta_key Area, Arabian Ranches
post_id 104910, meta_key Property, meta_value Al Arta 1
post_id 104910, meta_key Area, Greens
post_id 104911, meta_key Property, meta_value Avenida 2
post_id 104911, meta_key Area, Arabian Ranches
We know which Property and which Area belong together based on their rows having matching post_ID's.