SELECT `customer`.* FROM `customer`
LEFT JOIN `order` ON `order`.`customer_id` = `customer`.`id`
SELECT * FROM `order` WHERE `customer_id` = `customer`.`id`
SELECT `customer`.* FROM `customer`
SELECT `customer`.* FROM `customer`
LEFT JOIN `order` ON `order`.`customer_id` = `customer`.`id`
$brand = SELECT * FROM `order` WHERE `customer_id` = `customer`.`id`
SELECT `customer`.* FROM `customer` ORDER BY $brand['name']