select a.PAGE_ID, a.WP_PAGE_ID, a.COMMUNITY_ID, a.LATITUDE, a.LONGITUDE, a.TITLE, a.PAGE_SLUG, a.CNG_COVER_PIC_PATH, a.CNG_PROFILE_PIC_PATH, a.CNG_REQUIRED_POST_PERMISSIONS, a.CNG_DEFAULT_POST_FORMAT, a.CNG_DEFAULT_POST_ALIAS, a.CNG_REFERRAL_APPENDIX, b.LOCALITY_NAME2, b.SUBNATION_CODE, b.COUNTRY_CODE from cng_pages As a inner join localities as b on a.COMMUNITY_ID = b.LOCALITY_ID where WP_PAGE_ID = 1