This news id doesn't exist. SELECT n.*,c.name FROM pl_news n LEFT JOIN pl_news_categories c ON n.category_id=c.id WHERE n.structure_id="41" AND n.id=""