$search = 'บริษัทนครชัย';
$sql = " SELECT company.*, order.*
FROM order
LEFT JOIN company
ON order.idcompany = company.ID
WHERE company.company LIKE '%$search%' ";
SELECT `order`.*, company_user.*
FROM `order`, company_user
WHERE `order`.order_idcompany=company_user.idcompany
AND (company_user.compa_name LIKE '%".$_GET["txtKeyword"]."%' or `order`.company_general LIKE '%".$_GET["txtKeyword"]."%')
Group by `order`.idcode_pb order by `order`.idcode_pb DESC
$sql = "SELECT order.*, company_user.*
FROM order
LEFT JOIN company_user
ON order.order_idcompany = company_user.idcompany
WHERE company_user.compa_name LIKE '%".$_GET["txtKeyword"]."%'
OR order.company_general LIKE '%".$_GET["txtKeyword"]."%'
ORDER BY order.idcode_pb DESC";