@fahad19 

Can you perhaps recall why sanitize::clean was needed here? I'm thinking to skip sanitize $q for query, and just sanitize the output in view instead.