Fixed the getLastOrderByUserID query