Error: SELECT * FROM seo_url WHERE old_url = '/card-detail/A'%20+%20item.card_code%20+%20''

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 '%20item.card_code%20+%20''' at line 1