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