I am having a problem trying to select more than 8 columns from a table using the DBI module. It works fine if I use any one less column and the query works when entered into the database. Is there a simple way to fix this query or will I need to use a different method?
$query = 'select date, run_time, run_dis, num_push, num_sit, abs, comm
+ent, workout_id, scored from "cshaws_Schema"."log2" where pid = ' . $
+pid . ' order by date';
$sth = $dbh->prepare($query);
$sth->execute($query);
$sth->bind_columns(\$dates, \$run_time, \$run_dis, \$num_push, \$num_s
+it, \$abs, \$comment, \$workout_id, \$scored );
while($sth->fetch())
{
processes
}