Incorrect syntax near 'refine'.
SELECT tx_outgoingDomain FROM d_domain301Redirects WHERE yn_activated = 1 AND Replace(Replace(Replace(tx_incomingDomain,'http://',''),'https://',''),'www.','') = 'greenstaffmedical.com/Javascript:toggleVacSearchType('refine','click')'