Infrastructure/Database/DataMappers/EntityMapper.php
protected function validateWhere(array $whereColumnsInfo)
    {
        foreach ($whereColumnsInfo as $columnNameSql => $columnWhereInfo) {
            if (!in_array($columnNameSql, static::SELECT_COLUMNS)) {
                throw new \Exception("Invalid where column $columnNameSql");
            }
        }
    }
protected function validateWhere(array $whereColumnsInfo)
    {
        foreach ($whereColumnsInfo as $columnNameSql => $columnWhereInfo) {
            if (!in_array($columnNameSql, static::SELECT_COLUMNS)) {
                throw new \Exception("Invalid where column $columnNameSql");
            }
        }
    }
make sure each columnNameSql in columns