HDFStore cannot read Pytables file when where specified
#### Code Sample, a copy-pastable example if possible

```python
import tables as tb
import pandas as pd

# write with pytables
arr = np.zeros(4, dtype={'names':('size', 'age', 'weight'),
                         'formats':('i2', 'i4', 'u8')})
arr[0] = 2
arr[2] = (1, 2, 3)
fn = 'myfile2'
fileh = tb.open_file(fn+'.h5', mode='w')
filters = tb.Filters(complevel=9, complib='blosc', fletcher32=True)
table = fileh.create_table(fileh.root, 'mytable', description=arr.dtype, filters=filters)
for i in range(5):
    table.append(arr)
fileh.close()

# read with pandas (with where)
s = pd.HDFStore(fn+'.h5', mode='r')
s.select('mytable', where='age=2')
>> TypeError: Cannot compare 2 of type <class 'int'> to None column
s.close()

# read with pandas (without where)
s = pd.HDFStore(fn+'.h5', mode='r')
s.select('mytable')
>> <pd.DataFrame>
s.close()

```
#### Problem description

When the where is specified, you get `TypeError: Cannot compare 2 of type <class 'int'> to None column` but the data is read correctly when where is not given.

#### Expected Output
```
	size	age	weight
0	2	2	2
2	1	2	3
4	2	2	2
6	1	2	3
8	2	2	2
10	1	2	3
12	2	2	2
14	1	2	3
16	2	2	2
18	1	2	3
```
#### Output of ``pd.show_versions()``

<details>

INSTALLED VERSIONS
------------------

commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.24.2
pytest: 4.6.2
pip: 19.1.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.3
scipy: None
pyarrow: None
xarray: None
IPython: 7.5.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
