MDL-48702 logs: switched retrieval to get_recordset_select()