Execute "Make Query Table"  tool using python

Discussion created by Ananya_clark on Feb 4, 2014
Latest reply on Feb 5, 2014 by Ananya_clark
I am trying to execute the Make Query Table tool using Python scripts following which I will incorporate other tools as well. I have set all the required parameters for the tool to run; the input feature class, input table, the field list and the expression, etc. However, I get a Runtime error that says "RuntimeError: Object: Error in executing tool".

I am attaching the script here for your reference. I will really appreciate if someone can offer me some advice as to where I am making a mistake or what am I missing and how I can get this to work. I am a beginner with Python and any suggestions will be really helpful for me to build upon.

Thank You!