Add missing table name from SQL statement query