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 'A/%' ) AND status = 1 ORDER BY length(link_alias) DESC' at line 1
in:
[SELECT DISTINCT link_url, link_alias FROM max_links_aliases WHERE (link_url LIKE '%/svitidla-bodovky-bodovky-vyklopne-c-316_323_805'A/%' ) AND status = 1 ORDER BY length(link_alias) DESC]