Aktualisiert (Dank an Chad Johnson):
SELECT * FROM links WHERE 'subdomain.some-domain.com' LIKE CONCAT('%', domain_name, '%')
Aktualisiert (Dank an Chad Johnson):
SELECT * FROM links WHERE 'subdomain.some-domain.com' LIKE CONCAT('%', domain_name, '%')