---
title: "Feature: #19494 - Add SELECTmmQuery method to DatabaseConnection"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-19494"
source: "Changelog/7.5/Feature-19494-AddSELECTmmQueryMethodToDatabaseConnection.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Feature: #19494 - Add SELECTmmQuery method to DatabaseConnection

See [forge#19494](https://forge.typo3.org/issues/19494)

## Description

A new method `SELECT_mm_query` has been added to the `DatabaseConnection` class.
This method has been extracted from `exec_SELECT_mm_query` to separate the building
and execution of M:M queries.

This enables the use of the query building in the database abstraction layer.

Example:

```php
$query = SELECT_mm_query('*', 'table1', 'table1_table2_mm', 'table2', 'AND table1.uid = 1', '', 'table1.title DESC');
```
