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 2 query: SELECT a.*, r.friendly_url AS rs_url FROM `vybersito_texty` a
LEFT JOIN vybersito_rs r ON r.id_rs = a.parent_id WHERE a.druh = 'clanek' AND a.friendly_url = 'bonus-za-jednorazovy-nakup' AND a.lang='cz' AND (a.datum_do >= '2024-11-21' OR a.datum_do = '0000-00-00') AND active = 1 ORDER BY a.poradi ASC, a.datum DESC LIMIT
VYBERSITO.cz