Impl with_clone! macro to reduce copy-paste in select_query