Um simples
SELECT * FROM autumn.ip WHERE :number-constant >= start
ORDER BY start DESC LIMIT 1
UNION
SELECT * FROM autumn.ip WHERE :number-constant <= end
ORDER BY start ASC LIMIT 1;
Deveria trabalhar.
NO ENTANTO, deixe-me questionar sua qualidade de pesquisa...