This is mostly a cosmetic bug, the query string that gets used is not prettified, only the SQL log is parameterised. But this can occur if an error occurs that prevented all the variables from being replaced (such as specifying a parameterised variable but provided no matching parameter). This can cause confusion when debugging DB query issues.