I am getting a PHP warning when running a query in phpMyAdmin that includes both parentheses and a LIMIT
statement. For example:
(SELECT * FROM tableA LIMIT 1)
The warning is:
A non-numeric value encountered
I am using PHP version 7.2 and MySQL 5.6.42 and phpMyAdmin version 4.9.0.1
What might cause this warning?
EDIT:
My issue is not a duplicate of this, because no matter which column or table I use, I get the same warning
EDIT2:
Because people asked for an actual UNION
query:
(SELECT name FROM tableA LIMIT 1)
UNION
(SELECT name FROM tableB LIMIT 1)
This was the scenario I encountered the warning.