Merge pull request #1331 from rogeriopradoj/patch-1

Workaround for PDO Driver in 2.1-stable: num_rows doesn't work for SELECT queries