corrected execute_prepared