/** * Executes a SQL query on the DB and returns the Zend_Db_Statement object * If you want to fetch data from the DB you should use the function Piwik_FetchAll() * * See also http://framework.zend.com/manual/en/zend.db.statement.html * * @see Piwik_Sql::query * * @param string $sqlQuery SQL Query * @param array $parameters Parameters to bind in the query, array( param1 => value1, param2 => value2) * @return Zend_Db_Statement */ function Piwik_Query($sqlQuery, $parameters = array()) { return Piwik_Sql::query($sqlQuery, $parameters); }