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