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