Project Title: HomeWork

Renamed controllers, views and models
from Thread to Topic, Comment to Reply.
I think it is better to return this as an object? That way, you may access the methods inside this class in case you need to and have it's attributes preserved. Also, please have a more descriptive variable name on the parameter $string and have a validation in case your query did not return any rows.