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