select max(ID) as max_ID from SECTIONS

e leggi max_ID, dovrebbe funzionare....