Query: SELECT '1' as is_rozhovory, 'rozhovory' as type, ac.nadpis AS cat_name, ac.id AS cat_id, a.nadpis, if(LENGTH(SUBSTRING(a.anotace,1,120))>=120,CONCAT(SUBSTRING(a.anotace,1,120),'...'), SUBSTRING(a.anotace,1,120)) as anotace, a.img_o AS img, a.id as a_id FROM articles As a, articles_cat AS ac WHERE ac.id = a.parent AND (a.homepage!=3 OR a.parent=1) AND a.parent!=3 AND a.show=1 AND a.homepage=1 ORDER by a.datum DESC, a.id DESC LIMIT ,1; failed.
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 '1' at line 1