Also helpful to debug statements before preparing them. Simple example by @dshafik
http://daveyshafik.com/archives/605-debugging-pdo-prepared-statements.html