SELECT p.uid, url.speaking_url FROM pages p LEFT JOIN tx_realurl_urldata url ON url.page_id = p.uid WHERE p.filename='el_diálogo_interno.htm' AND p.lang='es';