SQL Hiba: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY news.id ORDER BY upload_date DESC' at line 7
SELECT news.*, SUBSTRING_INDEX(news.short_text, ' ', 12) short_text, manufacturers.title man_title, manufacturers.permalink man_permalink FROM news LEFT OUTER JOIN manufacturers ON manufacturers.id = news.manufacturer_id LEFT OUTER JOIN cat_to_news ON cat_to_news.id = news.id LEFT OUTER JOIN categories ON categories.id = cat_to_news.cat_id WHERE GROUP BY news.id ORDER BY upload_date DESC