The query is the following:
SELECT group,mailId FROM marketinggroups ORDER BY group ASC
and here is the CREATE code of the table marketinggroups
CREATE TABLE `marketinggroups` (
`group` SMALLINT(6) NOT NULL DEFAULT '0' COMMENT 'gruppo',
`mailId` INT(10) NOT NULL DEFAULT '0' COMMENT 'id della mail'
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB;
And here is the MySql error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group,mailId FROM marketinggroups ORDER BY group ASC' at line 1
What's wrong with this query? I have used the same syntax in other tables with success.