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