Fixed php warnings

MAIN_TABLE_NAME