Custom asset install failing

I'm trying to install a custom authentication asset. Previously I have created a simple ldap authentication asset which I used as the basis for this one. When I run step_03 I get the following message

    +-------------------------------------------------------------------+
    | MySource Warning                                                  |
    |-------------------------------------------------------------------|
    | Asset "authentication_remote_user" is not installed on the system |
    +-------------------------------------------------------------------+
    +------------------------------------------------+
    | PHP Notice                                     |
    |------------------------------------------------|
    | Undefined variable:  tables                    |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | in_array(): Wrong datatype for second argument |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Notice                                     |
    |------------------------------------------------|
    | Undefined variable:  tables                    |
    +------------------------------------------------+
    +------------------------------------------------+
    | PHP Warning                                    |
    |------------------------------------------------|
    | implode(): Bad arguments.                      |
    +------------------------------------------------+
    +-----------------------------------------------------------------------------------------------------------------------------+
    | MySource Error                                                                                                              |
    |-----------------------------------------------------------------------------------------------------------------------------|
    | [ASSERT EXCEPTION] DB Error: unknown error                                                                                  |
    |  DELETE FROM sq_rb_ast                                                                                                      |
    |                                       WHERE sq_eff_from = '2005-05-11 16:17:54'                                                                              |
    |                                         AND  [nativecode=ERROR:  parser: parse error at end of input] (LINE 1260 IN [SYSTEM_ROOT]/core/include/mysource.inc) |
    +-----------------------------------------------------------------------------------------------------------------------------+


Rollback was enabled on the system but has now been disabled. Does anywhere know where I should start looking? My code doesn't actually access any tables. We're using Matrix 3.4.1. The original asset was built for 3.2.0 and was ok during the upgrade.

Have you disabled rollback in main.inc?

Thanks. We still get the errors between the first and last one but it installs now.

Those are pointing to code errors within your own code. You should enable File and Line Numbers and Stack Tracing in System Configuration so that you can see more information about the source of each error.