Fixed findAndCountAll if where contains a condition of the form "name LIKE '%search%'"
where: ["name LIKE ?", "%search%"]
SELECT count(*) as "count" FROM "Table" WHERE name LIKE '%search%';
in second sql query after counting, options where is ["%search%"] only
what causes an error in the second query
SELECT * FROM "Table" WHERE %search%