Selecting Select n.id, n.Title2 as Title, n.News2 as NewsText, n.Anons2 as NewsAnons , n.picture_id , n.Date, n.NewsAuthor, n.AllowComment , p.path, p.Title2 as PicTitle, p.Author from news n Left join pictures p on p.id=n.picture_id where n.Show = 1 AND n.id = www.dautkom.lv - Unknown column 'www.dautkom.lv' in 'where clause'