Blad w: SELECT t1.title, t1.date, t1.img, t1.lead, t1.info, t1.cat_id, t1.id, t2.name, t1.img_main FROM 1_main t1, 1_categories t2 WHERE t1.cat_id=t2.id AND t1.temp IS NULL AND t1.published="1" ORDER BY t1.priority, t1.date DESC LIMIT 6,
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 '' at line 1