Illustraton for the fantasy book "Lineage of Elysium".
SELECT * FROM portfolio_projects
WHERE (
id = IFNULL((select min(id) from portfolio_projects where id > 86),0)
or id = IFNULL((select max(id) from portfolio_projects where id < 86),0)
)
ORDER BY date, id