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