I am recieving an error in this code, while i am trying to make a dynamic query using oops concept, so basically here it says i am accessing non-object element. But it\'s an