select *, ifnull(p.pozicija, 1000) as pp from vesti v left outer join pozicije p on v.id = p.vest_id order by pp asc, datum_objave desc limit 3