B1484 - repaired missing order status sql