Is the last `{$key}` supposed to be there, rather than some `$value`? I've no clue what the query looks like, just seemed like a lot of `'$key`s in a row.