Custom Entity SQL Error when running block

I created a new custom entity (OpportunityContact).

I created a new tab in the Opportunity Tabs to run a block. That block is a listblock that contains the opct_description field and opct_personid field.

My issue is when I click on the tab from Opportunity. I get a SQL error and the block doesn't run. The problem is the system is using oppo_opportunityid in the where clause rather than opct_opportunityid..

How do I correct this incorrect field?