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