SELECT `a`.*, `b`.`supplierName`
FROM (`comp_supplier_invoice` a)
JOIN `supplier` b ON `b`.`id` = `a`.`supplierID`
WHERE `a`.`companyID` =  '3'
AND `totalAmount` > 'amountPaid'
AND `updateAble` =  0
ORDER BY `invoiceDate`
LIMIT 5