View Item fixed

fixed view item page, SQL query was wrong