The following SQL statement:
SELECT f.id,
f.front,
f.back,
h.statusChangedIdCode,
h.whenCreated,
h.historyIdCode
FROM dpod_site_flashcards AS f
JOIN dpod_site_historyItems AS h ON f.id = h.itemId
WHERE f.id = 216
AND historyIdCode = 'statusChanged'
ORDER BY h.whenCreated
gives me the following output. How do I change it so that it returns only one line which has the most recent statusChangedIdCode?

or if you have a modern DBMS supporting windowing functions:
Both cases also work when you select rows for more than one
dpod_site_flashcards.idwhich the LIMIT solution would not do.