SELECT *,m.naziv as 'naz',p.naziv as 'nazv' from config c left join jezik j on j.idJezik = c.idJezik left join mpages p on c.idModul = p.idModul left join modul m on m.idModul = c.idModul where c.domena='localhost' and p.naziv='index'