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