SELECT `od`.`id_order_design`, `c`.`name`, `od`.`id_order_print`,
`od`.`type_product`, `od`.`parameters`, `od`.`date_order`,
`f`.`filelist`
FROM `orders_design` AS `od`
JOIN `clients` AS `c` ON `od`.`id_client` = `c`.`id_client`
LEFT JOIN (
SELECT `id_order_design`, GROUP_CONCAT(`name` SEPARATOR '|') AS `filelist`
FROM `files`
GROUP BY `id_order_design`
) AS `f` ON `f`.`id_order_design` = `od`.`id_order_design`
WHERE `c`.`id_manager` = 1
SELECT *
FROM `products_fieldlist` AS fl
LEFT JOIN `products_fieldcats` AS `fc` ON `fl`.`id` = `fc`.`field`