Custom Category Order Causes 500 error