Fix: Wrong redirect on pagination amount; fixed some mistypes in sql-statement