ginatrapani/ThinkUp — pull request #1357 by dwineman (2012-07-10 01:33:25+00:00)
Title: Fix PDO-related errors on certain PHP versions

This fixes two errors that occurred on my particular software stack, which includes PHP 5.2.6 and MySQL 5.0.67 running on Solaris 5.11:

* `SQLSTATE[HY000]: General error: 2050` (this occurs on the Capture Data page); fixed by setting `PDO::ATTR_EMULATE_PREPARES`. See also [this discussion thread](https://groups.google.com/forum/#!topic/thinkupapp/RbkAOOQ1Yjg/discussion).
* Failing query on the Tweets tab due to a PDO bug (maybe [this one](https://bugs.php.net/bug.php?id=44251)?) in which question marks occurring in string literals are misparsed as positional parameters; fixed by replacing the offending strings with named parameters.