Remove redundant execute_prepared_query clauses and quote select columns.