My current query (doesn\'t work)
SELECT url FROM table WHERE \'http://www.longurl.com/some/string\' like \'%\' . url . \'%\'
table
Okay, what about:
SELECT url FROM table WHERE INSTR('http://www.longurl.com/some/string', url) > 0
(Formatting didn't work so well in the comments, so I added it again as an answer.)