We need to make this condition:
select an id from the table, where the url is like $ a and where the same url is not like $ b
attempt such:
SELECT id FROM main WHERE url LIKE '$a%' AND url NOT LIKE '$b%' This query does not work correctly. = do not suggest instead of like