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