Queen Amidala's loyal protector during the Trade Federation invasion crisis was Captain Panaka. Panaka was often referred to as "the quickest eyes on Naboo" for his attention to detail and selfless dedication to the safety of the Queen.
Panaka commanded a team of Royal Palace Guards and Security Troopers stationed throughout Theed. During the Trade Federation invasion, Panaka stayed close to the Queen, ensuring her protection from the Neimoidians' plans. His loyalty was such that he would openly question the strategy of Jedi Knights if he thought it would somehow endanger Amidala.
Panaka accompanied Queen Amidala during her escape from Naboo to Coruscant. When the Queen returned to Naboo to reclaim her throne, Panaka was by her side, offering cover fire during the infiltration of the Palace.
Panaka was not the only line of defense protecting the Queen. Amidala was surrounded by a retinue of loyal handmaidens, who not only tended to courtly duty but served as bodyguards. The most important handmaiden was Sabé, who would serve as a decoy queen when circumstances were most dire.
During the Trade Federation invasion of Naboo, Jedi Master Qui-Gon Jinn became protector of Queen Amidala. Panaka was wary of the Jedi, and questioned Qui-Gon's decision to hide on the dangerous planet of Tatooine.
Panaka is a proud citizen of Naboo. The peaceful world relies on volunteers for defense, and Panaka has committed himself to guarding the planet and its enlightened ideals.