$query = "SELECT
c.name as category_id, f.id, f.name, f.url, f.status, f.category_id, f.created
FROM
" . $this->table_name . " f
LEFT JOIN
categories c
ON f.category_id = c.id
ORDER BY
f.id";