I'm trying to run this query:
SELECT wins FROM players WHERE auth = '[U:1:123456789]' LIMIT 1;
But I get the following error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 0, 25' at line 1
However, when I remove LIMIT 1
it works.
If I change the query to look like this, it also works:
SELECT wins FROM players WHERE auth = '[123456789]' LIMIT 1;
I'm very confused, what am I doing wrong? It seems like colons just break the query.
Edit: CREATE TABLE
CREATE TABLE `players` (
`auth` varchar(32) NOT NULL,
`name` varchar(32) NOT NULL DEFAULT '< blank >',
`wins` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`auth`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1