Please use double quotes around "pos" and SMALLINT instead of smallint(6)