Inclusive particle photoproduction to next-to-leading order