-

select * from header_event_master where event_position='1' and active='Y' order by event_id desc limit 0,1

Error