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