Error in select *, UNIX_TIMESTAMP(vlozeno) AS vlozenoTS from `fotka` where `fotkaid` = '-1' OR keywords COLLATE utf8_general_ci LIKE '%Daniel Tabášek 'R'%' order by vlozeno desc DB Message: 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 'R'%' order by vlozeno desc' at line 1