$sql = "SELECT mill GROUP_CONCAT(quantity ORDER BY quantity ASC SEPARATOR "+") FROM stock_avail WHERE quantity > 0 GROUP BY mill AND "
. " (mill LIKE :keyword) ORDER BY mill ";
$stmt = $DB->prepare($sql);
$stmt->bindValue(":keyword", $keyword."%");
} else {
$sql = "SELECT mil GROUP_CONCAT(quantity ORDER BY quantity ASC SEPARATOR "+") FROM stock_avail WHERE quantity > 0 GROUP BY mill ";
$stmt = $DB->prepare($sql);
}