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