What is the right way to escape text that is passed to query with LIKE pattern matching? The problem is that
select()->where('field LIKE ?', $input . '%');
will be incorrect with
$input = '%sometext';
UPDATED: 'vulnerable to' -> 'incorrect with'