Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.26 KB | None | 0 0
  1. SELECT p.ID, pm.*, _ci.title_en, _c.title_en FROM wp_posts as p
  2. JOIN wp_postmeta pm ON pm.post_id = p.id
  3. JOIN _cities _ci ON _ci.city_id = pm.meta_value AND pm.meta_key = 'REAL_HOMES_city'
  4. JOIN _countries _c ON _c.country_id = _ci.country_id
  5. WHERE p.ID = 912
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement