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