select newsData.id,newsData.nid,newsData.uid,newsData.show_author,newsData.title,newsData.tid,newsData.html,newsData.image,newsData.smallimage,newsData.views,newsData.created from news newsData where newsData.lang='en' or (((select count(*) from news where nid=newsData.nid and lang='en') = 0) and (newsData.lang='ru'));