Added order_by calls to the limit(1) calls for CI SQLSVR driver compatbility