SELECT p.uid, url.speaking_url FROM pages p LEFT JOIN tx_realurl_urldata url ON url.page_id = p.uid WHERE p.filename='no_duermas_despu├ęs_de_comer.htm' AND p.lang='es';