How to extract query placeholders for debug purposes?
This can be done using arguments:

echo (string)$query;
var_dump($query-&gt;arguments());


This simple code will give you both query and arguments, for simple debugging.