1: 2: SELECT * FROM flast 3: WHERE floor(Renz_Herbarium_Number)=floor() AND Position=1 4: ORDER BY Renz_Herbarium_Number ASCYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND Position=1 ORDER BY Renz_Herbarium_Number ASC' at line 2