I've got it, I should prepare it first before execute,
$stmt= $dbh->prepare($query);
$stmt->execute($filterParam);
But I still like to know the most effective way mixing filter, paging, sorting in php, I still DRY myself in my code.
Do you have that example?
Thanks