Last row cannot be set to top

When trying to put last row at top, litteral "top" was used in the query instead of "0" value.