[#31550] SQL error if profiling not available/not activated in mysql (3.1.2 pre release)