To filter by a year when the date has been saved as a timestamp, do this. pub_date if the stored record.
$query = "SELECT FROM_UNIXTIME(pub_date, '%Y') as year FROM ".$table ." WHERE parent='177' AND deleted='0' AND FROM_UNIXTIME(pub_date, '%Y')='2010' AND published='1' ORDER BY pagetitle";
I love the site
Just thought i would comment and say neat design, did you code it yourself? Looks great.