$apiKey, ':query' => "%{$query}%", ]; $query = ( "SELECT event_ip.id AS id, 'IP' AS \"groupName\", 'ip' AS \"entityId\", event_ip.ip AS value FROM event_ip WHERE event_ip.key = :api_key AND LOWER(TEXT(event_ip.ip)) LIKE LOWER(:query) LIMIT 25 OFFSET 0" ); return $this->execQuery($query, $params); } }