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 '%8595165321500%' or h.nazev_EN LIKE ...' at line 4 Error no:1064