updated script to use subquery for last_id instead of independent method
updated script to use subquery for last_id instead of independent method

foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP