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