select * from redirects where fromurl = 'https://www.teacup.co.za/'+a.url+'' and websitesid = '61' and enabled = 1