Fixed bug for columns with no index (I.E. PRIMARY KEY)