<?php $sql = "SELECT `ingredient_name` FROM `ingredients`"; $ingredients = $pdo->query($sql)->fetchAll(PDO::FETCH_COLUMN);