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