My schema is this:
CREATE TABLE `dump` (
`index` int(20) DEFAULT NULL,
`uid` int(20) DEFAULT NULL,
`time` int(20) DEFAULT NULL,
`delete1` int(20) DEFAULT NULL,
`delete2` int(20) DEFAULT NULL,
`delete3` int(20) DEFAULT NULL,
`delete4` int(20) DEFAULT NULL,
`delete5` int(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Yet when I run the query:
SELECT * FROM dump WHERE 'index' IN ('1', '2', '3');
Nothing is returned. I am 100% sure that there are entries with an index of those values. It does not matter if I remove the single quotes from 1,2,3 etc but gives a syntax error if removed from index.