Given input parameter to a method and i need to set that dynamically into the query

@Query(value = “Select META(XXX).id as _ID, META(XXX).cas as _CAS, XXX.* from XXX where lastName = ‘:lastName’”)
Stream getByLastName(String lastName);

Whatever the lastName passing into getByLastName should be set into query its not setting now when i am trying this i am getting empty result even though
there are documents please help me