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