Fixed wordpress table name issue.
Added table name as a config and concatenated the prefix with it.