$get_points = $DB_site->query(" SELECT h.id, h.sid, h.house, h.date, h.points, h.comments, u.username as tid_name FROM housepoints h, 1user u WHERE h.tid = u.userid AND h.points != 0 AND h.sid > 0 ORDER BY h.date ");