She is distracted, he is not.
Quick exercise for fun.
SELECT * FROM portfolio_projects
WHERE (
id = IFNULL((select min(id) from portfolio_projects where id > 231),0)
or id = IFNULL((select max(id) from portfolio_projects where id < 231),0)
)
ORDER BY date, id