fix on query for get times from Status to Status