library/Services/Library/DatabaseHandler.php
public function query($sql)
    {
        $this->useConfiguredDatabase();
        $return = $this->getDbConnection()->query($sql);
        $this->checkForDatabaseError($sql, 'query');
        return $return;
    }
public function query($sql)
    {
        $this->useConfiguredDatabase();
        $return = $this->getDbConnection()->query($sql);
        $this->checkForDatabaseError($sql, 'query');
        return $return;
    }
public function query ( $ sql ) { $ this -> useConfiguredDatabase ( ) ; $ return = $ this -> getDbConnection ( ) -> query ( $ sql ) ; $ this -> checkForDatabaseError ( $ sql , 'query' ) ; return $ return ; }
Executes query on database.

@param string $sql Sql query to execute.

@return PDOStatement|false
Executes query on database .