Corrected SQL publication mixin