diff --git a/src/Medoo.php b/src/Medoo.php index 471d2d31..b3429721 100644 --- a/src/Medoo.php +++ b/src/Medoo.php @@ -690,7 +690,7 @@ protected function buildRaw($raw, array &$map): ?string } $query = preg_replace_callback( - '/(([`\'])[\<]*?)?((FROM|TABLE|INTO|UPDATE|JOIN|TABLE IF EXISTS)\s*)?\<((' . $this::TABLE_PATTERN . ')(\.' . $this::COLUMN_PATTERN . ')?)\>([^,]*?\2)?/', + '/(([`\'])[\<]*?)?((FROM|TABLE|TABLES LIKE|INTO|UPDATE|JOIN|TABLE IF EXISTS)\s*)?\<((' . $this::TABLE_PATTERN . ')(\.' . $this::COLUMN_PATTERN . ')?)\>([^,]*?\2)?/', function ($matches) { if (!empty($matches[2]) && isset($matches[8])) { return $matches[0];