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 '_i_url_''' at line 1There is an error with the following query; SELECT franchise_id FROM Franchise WHERE franchise_id != 0 AND franchise_slug = ''_i_url_''