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