I think you will get the below error because of
strQuery += " proj_name and unit_description AND company_code AND status='not completed' ORDER BY Contract_num DESC";
line
error:
An expression of non-boolean type specified in a context where a condition is expected, near 'and'.
tel what you want to do with the above line so that we can tell you what to do