If the query is a PREPARE or EXECUTE statement, then qc_get_prepare_name will return the name of the prepared statement.