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