is it a cookie or a session?
your where clause:
employees.emp_name = colname1
suggests you have a variable in the recordset named colname1.
in the advanced view for the recordset, go to the variables section, and edit the colname1 variable to:
Name: colname1
type: text
Default value: -1
Run Time Value: $_COOKIE['username']
if it is a session, not a cookie, then:
Run Time Value: $_SESSION['username']