Having trouble with placeholder LIKE statement in psycopg

It only seems to be these two lines, as I have other queries with LIKE statements that work no issue. I have other commands with a “%s” placeholder in the middle, and a LIKE statement, and those work no issue. And as mentioned, they worked no problem when I was using sqlite, but since switching they don’t.

https://www.reddit.com/r/PostgreSQL/comments/15jb37k/having_trouble_with_placeholder_like_statement_in/