There is a categories table and a category_type table with a link. I need to select categories from the categories table and select links from category_type for each one. I try this:
SELECT *, GROUP_CONCAT(category_type.type_id) as types FROM `categories` LEFT JOIN category_type on category_type.category_id = categories.id but as a result returns only those rows that have a link in the category_type table