Fixed query to insert subscription