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