Generating SELECT (JOIN) Query Through C...