Thread:Project:Support desk/get page id in different languages

I need to get page.page_id of both ru and en wiki pages having an id of the Russian page. Obvious solution is to use a `langlinks` table for that, so I can: SELECT ll_title FROM ru_langlinks WHERE ll_lang = "en" AND ll_from = 163513; Also a can do an   INNER JOIN page ON ll_title = page_title; but the problem is that titles are different. In example above the result is 'Robert De Niro' but page.page_title of the page I`m looking for is 'Robert_De_Niro' of course I can replace whitespaces but it will slow system down. What mechanism in wiki is used for such a purposes?