Chyba vyberu z databaze
SQL dotaz:
SELECT c.*, c.description AS description_clanek, w.description AS description_menu, c.keywords AS keywords_clanek, w.keywords AS keywords_menu, if(c.title!='',c.title,c.nadpis) AS title_clanek, if(w.title!='',w.title,w.nazev) AS title_menu FROM cz_clanky AS c LEFT JOIN cz_webmenu AS w ON (w.id = c.id_menu) WHERE AND c.aktivni = 1 ORDER BY c.razeni DESC LIMIT 0,10
Chybova hlaska:
1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND c.aktivni = 1 ORDER BY c.razeni DESC LIMIT 0,10' at line 6