Tried to write sanitized queries but it didn't work.