Uppdaterad (tack vare Chad Johnson):
SELECT * FROM links WHERE 'subdomain.some-domain.com' LIKE CONCAT('%', domain_name, '%')
Uppdaterad (tack vare Chad Johnson):
SELECT * FROM links WHERE 'subdomain.some-domain.com' LIKE CONCAT('%', domain_name, '%')