Fixed compatibility with PHP PDO