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