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 '/' from length(url)+1 ) trail FROM site_pages2 WHERE 'includes/rev-slider/js/ext' at line 1