fixed query for mysql real columns