fix join on non-id field w prefix
fix join on non-id field w prefix

e.g. parent_topic links to topic.name

factored getTablePrefix into its own function
changed choose_table_and_field
    to not totally fork code paths
        based on whether $suffix exists or not
    instead, just do the substr if $suffix
        mostly everything else is the same

replaced do_log calls with self::log
    changed self::log to call do_log (for now)
        in future, put do_log et al in a class

code cleanup

ryanfmurphy/dash,ryanfmurphy/dash,ryanfmurphy/php_orm_router,ryanfmurphy/php_orm_router