<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$query = $this-&gt;createQuery();                                   
$query = $query-&gt;statement(
    //manually creating PreparedStatement should not be necessary
    //anymore in typo3 v8+
    new \TYPO3\CMS\Core\Database\PreparedStatement(              
        'SELECT * FROM tablename WHERE col = ? LIMIT 1',
        'tablename'
    ),
    ['myvalue']
);
$result = $query-&gt;execute();</pre></body></html>