> This will do what you want safely, using bind parameters: > > { count => \["CASE WHEN pathogen.name = ? THEN 1 ELSE NULL END", > $name1] }, Thanks, this works perfectly