Well, if you would like to know what the errors themselves mean, here we go:
In Query1 you try to retrieve information from adatabase table called ezsession and you limit your search to a specific session_key. However the table does not contain one of the fields mentioned in your query, user_id, and therfore the query fails and you get that error. The same with the second query just a different field_name and table.