Here\'s my query. It selects a list of ids from two tables across two databases. The query works fine.
select en.id, fp.blogid from french.blog_pics fp, fren
Use DISTINCT for avoiding multiple occurance
DISTINCT
select en.id, fp.blogid, count(*) as occurrences from french.blog_pics fp, french.blog_news fn, english.blog_news en where fp.blogid = fn.id and en.title_fr = fn.title and fp.title != '' group by en.id having count(*) > 1