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