Given something like
DB()->prepare(\"SELECT * FROM mysql.general_log WHERE user_host LIKE ?\"); $statement->execute( array(\'%console%\') ); foreach(
By default, PDO_MYSQL emulates the prepared statements. To use the native server-side prepared statements, one should explicitely set
$PDO->setAttribute(PDO::ATTR_EMULATE_PREPARES,false);