Таблицы: users, secret
Поля таблицы users: id, login, pass
В таблице secret три поля
Запрос: SELECT * FROM users WHERE id=2 OR login='$text' LIMIT 1
Ошибка при выполнении запроса: «You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' limit 1' at line 1»
Ура, я знаю ответ (данные из таблицы secret с полем ggg='abc'):