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