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 cen.cenaWeb='99' ( h.nazev_CZ LIKE '%8595165394634%' or h.nazev_EN LIKE ...' at line 4 Error no:1064