Use prepare_cached, not prepare, inside of fetch1_sql