allurls oldurl,newurl #loco# #pagenum# #lookup# SELECT newurl FROM allurls WHERE oldurl like '%#lookup#%'