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