Simpler just to use the x operator, no?
$query->execute(("$last_y-$last_m-01") x 4); [download]
🦛
In reply to Re: Reusing placeholders by hippo in thread Reusing placeholders by Bod