PDO prepared statement fetch() returning double results
问题 I have a script that is outputting to a CSV file. However, even though there is currently one row in the database, the output I'm getting is echoing out each column from each row in the table twice. For example: 1,1,John,John,Smith,Smith,2014,2014 Should be 1,John,Smith,2014 This worked fine before I went with PDO and prepared statements, so I'm thinking maybe I'm not understanding how fetch() works correctly. Below is my code. Any idea what I could be doing wrong? // get rows $query_get_rows