select * from photos where passed=true and photobookid=9 order by orderid