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