Sepertinya Anda ingin menggunakan ORDER BY alih-alih GROUP BY:
select * from calendar where approved = 'pending' order by eventid asc limit 1;
Sepertinya Anda ingin menggunakan ORDER BY alih-alih GROUP BY:
select * from calendar where approved = 'pending' order by eventid asc limit 1;