Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE Timed_Status_of_Things ( thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR )
TABLE: CREATE TABLE Things ( thing_id VARCHAR, Type_of_Thing_Code VARCHAR )

### Question ###
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21

### Accurate SQL ###

SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'