After sorting, LIMIT 1 keeps the first row. Changing the sort direction changes which end of the list you see.
LIMIT 1
SELECT id FROM deployments ORDER BY id ASC LIMIT 2;
Find the deployment with the highest ID. Return just its id and status.
id
status