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