my $dbCommand = 'select '.join ',',@ticketsFields;