I\'m new to using $pdo statements so might be something simple I haven\'t yet read on php.net. I\'m receiving duplicate results when querying the database.
This is not duplicate data fetchAll returns data in numeric array as well as associative array.
fetchAll
See the Docs
Use this for retrieving only associative array
return $query->fetchAll(PDO::FETCH_ASSOC);