Update gbirc.cpp

Added select, removed duplicate JOIN declaration.