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