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