After the connection, the query returns some result. Based on the documentation what I found on microsoft.com the PDO::ATTR_EMULATE_PREPARES is an attribute for PDO::prepare not for the connection. In ...